I am fighting with the positioning of my multiple nivo sliders. I have (in the moment) five sliders which should appear all on the same position, which can be seen here.
The thing is that the positioning in the code is always the same; but it isn't on the browser's display. When clicking on "Keeping Track" or on "Chemicals & Waste", the slider appears either on the top of the page, or is being only partly displayed....
User Profile
Collapse
Profile Sidebar
Collapse
luftikus143
Last Activity: Jan 29 '13, 08:36 AM
Joined: Jan 22 '07
Location:
-
Positioning Unclear For Multiple Nivo Sliders
-
Ok, guess I need to go for the third solution then. Thanks! -
How to pass an HTML array to another form
Hi there,
I am trying to pass an HTML element, which is an array, to another form. Not so difficult, I'd say, but I tried almost all possible combinations, and it doesn't work.
I have a form where I have this SELECT element:
Code:<select name="preselectedCountries[]" size="9" multiple="multiple"> <option value="Albania">Albania</option> <option
-
Simple check for $_POST and $_GET at the same time
Hi there,
I need to check if a variable was passed by $_POST or $_GET. IS there any "easy" solution to this other than writing something like
Code:if ($_POST['selectedID'] > 0) { $selectedID = $_POST['selectedID']; } elseif ($_GET['selectedID'] > 0) { $selectedID = $_GET['selectedID']; }
-
How to use preg_match_all to retrieve multiple images in a blog entry
Hi there,
the code below retrieves one of multiple images in a blog entry (the last in the list).
Code:$output = preg_match_all('/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', $post->post_content, $matches); if(isset($matches [1] [0])){ $first_img = $matches [1] [0];} if(empty($first_img)){ //Defines a default image } else{ print "<a href='$permalink'><img
-
-
How to read from a three-dimensional array
Hi there,
gush, this array issue doesn't really want to enter my head. Always having problem with it.
I have, after quite some effort, succeeded in storing data in an array, which looks like this:
Code:array(10) { ["Economically Active Population"]=> array(41) { [0]=> array(2) { [0]=> string(4) "1980"
-
Thanks for the reply. The code does indeed create the files if they are not there. But it does it only when a user clicks on one of the many "links" (better, the four different options), which then calls the SVG file. If the SVG is not there, it will be created. But I would like to create them at the first instance, because I don't want the user to have to wait for 30 seconds or even a minute, which is the time to create the file. Once...Leave a comment:
-
How to execute PHP file with parameters automatically?
Hi there,
I need to (re)create every couple of days a few dozen SVG files, which are created through the same PHP file, passing four parameters. I have programmed the generic PHP file so that it overwrites already created files after, say, 7 days.
But at the beginning (after having changed any coding in the PHP file) I have to launch those three dozen files always by hand. Instead I would like to use a script which would... -
-
luftikus143 started a topic How to prevent page scrolling when user uses keydown for SVG application?in JavascriptHow to prevent page scrolling when user uses keydown for SVG application?
Hi there,
on my webpage the user has the possibility to click in a SVG chart and use arrows to navigate up and down. However, the keydown not only moves the SVG elements down (as it should do), but it scrolls the whole page down - so, two things are moving at the same time, and it's really annoying, as the user can hardly see what happens in the SVG graph.
Is there any possibility to stop page scrolling per arrow keys... -
Ah gush, as usual, tiny thing. The name for the element I tried to call was too complex for me to see that there was one letter too much - the one letter I did indeed need for another element to call. Sorry!Leave a comment:
-
Sorry for the imprecision.
The error message I get (in Safari, Error Console) is:
Code:TypeError: 'null' is not an object (evaluating 'svgDocument.getElementById(t).getAttributeNS')
Leave a comment:
-
Yep, I tried to verify this a couple of times and via different steps.
But what is really strange, is now the following:
When I use an alert:
Code:alert(svgDocument.getElementById(t).getAttributeNS(null,'mouseovertext'));
it gives me what I want. But when using just to pass that to a variable, it doesn't work:
Code:clicked_element_text = svgDocument.getElementById(t).getAttributeNS(null,'mouseovertext');
Leave a comment:
-
How to use getElementById with a JS variable?
Hi there,
I am fighting with a small, probably dumb, issue.
I want to call the properties of an SVG element. The element is composed of several elements:
Code:t = 'id_' + selectedIndex + '_' + clicked_element_year;
Now, it seems I can't call it this way:
Code:clicked_element_text = svgDocument.getElementById(t).getAttributeNS(null,'mouseovertext');
... -
Thanks a lot. Got me thinking (into a different direction before) and trying out some stuff, and finding the (formatting) error indeed before that step.Leave a comment:
-
luftikus143 started a topic How to connect to two Postgres databases, and, if possible, return one $result?in PHPHow to connect to two Postgres databases, and, if possible, return one $result?
Hi there,
I need to connect to two postgres databases. And I would like to "join" the two "$results", so that the content will be displayed as if it is only one single request.
I had imagines something like this:
Code:// connect to first database db_connect("database_1"); // retrieve first results db_query($query); // store results in temporary
-
Why does "var_dump" give me different data than "echo"?
Hi there,
I am putting some decimal data from a database into an array, in order to draw a graph. This works generally without problem. But from time to time, the graph doesn't display correctly.
Now, while echoing the data I get this:
Code:43.2 45.2 49.6 56.2 65.1 70.2 50.5 38 36.6 14.3 15.2 6.6 4.1 5.4
... -
Ha, jackpot! And I feel stupid that I haven't looked in the HTML code myself before. Indeed, there is a "<b>9" and "<b>22", instead of the pure number. Thanks a thousand times for this hint! Great!!Leave a comment:
-
Strange, strange. I used a trim, but nothing changed. It seems that when the number has two places (i.e >= 10), it turns from string(4) to string(5).
string(4) "9"
string(5) "22"
Perhaps a clue for someone? I am really stuck. No idea what to do.
Thanks a lot for any hints!Leave a comment:
No activity results to display
Show More
Leave a comment: