Search found 58 matches

Go to advanced search

by ihtus
Fri Jan 18, 2019 8:03 pm
Forum: Highslide JS Usage
Topic: change width of an opened popup
Replies: 0
Views: 15853
 
Jump to post

change width of an opened popup

How can I change the width (fixed dimension in px) of a currently opened popup?
Let's say from 400px to 600px.

Tried this, but doesn't work:

Code: Select all

	var expander=hs.getExpander(jq('#my_popup_id_HS')[0]);
	hs.maxHeight=600;
	expander.reflow();
Thank you.
by ihtus
Mon Jul 23, 2018 6:39 pm
Forum: Highslide JS Usage
Topic: reflow() with maxHeight
Replies: 2
Views: 6971
 
Jump to post

Re: reflow() with maxHeight

Mr Neutron, this is Mr Quark :D Based on my notes (collected from forums/stackoverflow): maxWidth will not work for HTML popups; these popups must have a defined width (default is 400px). maxHeight works for HTML popups. Speaking about my question, I got a solution by forcing some CSS with jquery jq...
by ihtus
Thu Jul 12, 2018 2:58 pm
Forum: Highslide JS Usage
Topic: reflow() with maxHeight
Replies: 2
Views: 6971
 
Jump to post

reflow() with maxHeight

I am populating dynamically the popup content + reflow. When there is too much content, the popup gets too loooong. How is it possible to limit the maxHeight of the popup? Tried the following code.. but hs.maxHeight=600; has no effect. var expander=hs.getExpander(); hs.maxHeight=600; expander.reflow...
by ihtus
Fri Feb 02, 2018 6:46 pm
Forum: Highcharts Usage
Topic: Pulsating bar
Replies: 2
Views: 1064
 
Jump to post

Re: Pulsating bar

Thanks Paul, already got it working using jquery. I assign opacity 0.99 to all bars that I wan to pulsate rgba(25,153,25,0.99) Then execute this JS function function pulse_bar(fade_opac) { if(typeof(fade_opac)==='undefined') var fade_opac=0.5; var bar=$('rect[fill*="0.99"]'); // finds all ...
by ihtus
Fri Feb 02, 2018 1:35 pm
Forum: Highcharts Usage
Topic: Pulsating bar
Replies: 2
Views: 1064
 
Jump to post

Pulsating bar

Is it possible to add pulsating effect to a bar (opacity going 100% => 0% => 100% ... etc) ? Now I mark the bar with 33 value with static opacity 0.5, but would like to have pulsating effect. Or is it possible to add ID attribute to a <rect> element? And then I would try to animate it with jquery. h...
by ihtus
Tue Dec 19, 2017 5:49 pm
Forum: Highcharts Usage
Topic: Hide date on x-axis and have only hours and minutes
Replies: 2
Views: 2870
 
Jump to post

Re: Hide date on x-axis and have only hours and minutes

Thanks a lot! that works!
by ihtus
Tue Dec 19, 2017 4:51 pm
Forum: Highcharts Usage
Topic: Hide date on x-axis and have only hours and minutes
Replies: 2
Views: 2870
 
Jump to post

Hide date on x-axis and have only hours and minutes

How is it possible to hide date on x-axis with datetime, and leave only hours and minutes?

For example in the below graph I would like to have 00:00 instead of 19. Dec

Image
by ihtus
Tue Jul 18, 2017 3:36 pm
Forum: Highcharts Usage
Topic: How to destroy before writing a new chart
Replies: 1
Views: 19593
 
Jump to post

How to destroy before writing a new chart

How to destroy before writing a new chart (to prevent memory leak)? from http://api.highcharts.com/highstock/Chart.destroy destroy () - Removes the chart and purges memory. This method should be called before writing a new chart into the same container. It is called internally on window unload to pr...
by ihtus
Tue Jan 08, 2013 7:40 pm
Forum: Highslide JS Usage
Topic: contentID popup: close then open with changed content
Replies: 26
Views: 22953
 
Jump to post

Re: contentID popup: close then open with changed content

Thanks to Jesus, figured that out:

delete all clones - "hs.clones=[]"
delete a single clone based on content_id - "delete hs.clones['content_id']" - it deletes an element from associative array.

Torstein I hope you can confirm that.

Thanks!
by ihtus
Tue Jan 08, 2013 7:04 pm
Forum: Highslide JS Usage
Topic: contentID popup: close then open with changed content
Replies: 26
Views: 22953
 
Jump to post

Re: contentID popup: close then open with changed content

Hello Torstein,

how are you?
Did you receive the money for license from Magna?

I have a question..

Let's say I have multiple HS popups based on different content_ids.
Can I delete not all clones (hs.clones=[]), but a specific clone based on one content_id?
If yes, how can I do that?

Thank you!
by ihtus
Thu Oct 25, 2012 12:24 pm
Forum: Highslide JS Usage
Topic: contentID popup: close then open with changed content
Replies: 26
Views: 22953
 
Jump to post

Re: contentID popup: close then open with changed content

1. When preserveContent = true, the entire source div is detached from the DOM tree and Highslide refers to it internally. So when you overwrite the original source div, Highslide doesn't care, because it keeps the source div outside the DOM- I suppose the following: - when preserveContent = true -...
by ihtus
Wed Oct 24, 2012 6:26 pm
Forum: Highslide JS Usage
Topic: contentID popup: close then open with changed content
Replies: 26
Views: 22953
 
Jump to post

Re: contentID popup: close then open with changed content

1. just wondering why it didn't work with hs.preserveContent = true as you said, when hs.preserveContent = false => we deal with clones, and that's why need to remove the clones hs.clones = []; But when hs.preserveContent = true => we do not have clones, right? and the popup content should be updat...
by ihtus
Wed Oct 24, 2012 12:38 pm
Forum: Highslide JS Usage
Topic: contentID popup: close then open with changed content
Replies: 26
Views: 22953
 
Jump to post

Re: contentID popup: close then open with changed content

The content of the div is pulled from a clone each time the popup is opened. In your case, where the entire contentId div is replaced instead of just the contents, this clone must be deleted. You need to reset hs.clones like this: $json['eval'].="HighSlide_dialog1_set_vars(); [hilight]hs.clone...
by ihtus
Mon Oct 22, 2012 1:27 pm
Forum: Highslide JS Usage
Topic: contentID popup: close then open with changed content
Replies: 26
Views: 22953
 
Jump to post

Re: contentID popup: close then open with changed content

Dear Torstein, thank you again! I just followed your fiddles, and I see that you are updating the hs popups using JS. I don't know how to apply your examples for my case.. But in my case I have to update it using server response (in my case json ajax response). I cannot use JS date, because need to ...
by ihtus
Wed Oct 17, 2012 6:49 pm
Forum: Highslide JS Usage
Topic: contentID popup: close then open with changed content
Replies: 26
Views: 22953
 
Jump to post

Re: contentID popup: close then open with changed content

Dear Torstein, thank you for your time and reply! I am already using forceAjaxReload and hs.cacheAjax. since we already have Ajax built in Yes, this is a very good feature, but in my case I cannot reach my goal using the built-in ajax feature, and I need a more complex approach, which already exists...

Go to advanced search