PHP, Javascript, HTML
How to get option value in PHP? And i want to redirect to the same page, if option is changed by using onClick() function. Anybody please help me. ...
How to get option value in PHP? And i want to redirect to the same page, if option is changed by using onClick() function. Anybody please help me. ...
I'm trying to animate a dot from one point to another on a map. Right now I have the following code: function animate(){ //animation var pt = oldLoc; for(i = 0; i < 1000; i++){ pt.y += 5 pt.x += 5 graphic.setGeometry(pt); //sets the new point coordinate...
var tagMatch; if (tagMatch = window.location.href.match(/\/questions\/ask\?tags=([^&]+)/)) { $(function() { if (!$('#tagnames').val().length) { $('#tagnames').val(unescape(match[1].replace(/\+/g, ' ')); } }); } Hi all, this JS code is supposed to match the latter-part of a URL of the fo...
Hey, help would be very much appreciated. How do I make an ifstatement so both of these fields "szValue" and "szPara" clear onSubmit? Thanks! function submit() { if (document.getElementById('szValue').value === "Enter First Value") { document.getElementById('szValue').value = ""; } if (document.getElementB...
Hi guys, just a quick question. I'm having a problem with divs with onclick javascript within each other. When I click on the inner div it should only fire it's onclick javascript, but the outer div's javascript is also being fired. How can the user click on the inner div without firing the outer div's javascript? <html> <body> <div onc...
I'm hoping to get some help with my problem i have been having with jquery datepicker. Please visit this site for information regarding the problem with code samples: http://codingforums.com/showthread.php?p=929427 Basically, i am trying to get the 1st day and day 31st working and have yet to find a way to do this. They say it may be a...
hello frieds this is how i usually post a variable using Jquery.. $.post("include/save_legatee.inc.php", { legatee_name: legatee_name_string, legatee_relationship:legatee_relationship_string, ...
Hi, Is it possible to use javascript to control which frame of a gif image is showing / stop animation. I want to be able to load a gif with several frames and only show one of them. I know I could do it with lots of seperate images, but if I can do what i want with a gif, it will only be one file to worry about. Thanks, Logan ...
Is there any way to select only innermost tables? That is ones that do not contain any more tables inside them? I know I can filter by element.getElementsByTagName("table").length == 0, I'm just wondering if there's a more elegant solution. ...
Hi, I'm new to Jquery, so please bear with me. I'm trying to create a function that will programmatically open popup windows. I'm running the following code in Firefox, and it seems to work except that the popup windows disregards the toolbar/menubar/scrollbars/resizable/location parameters (they are still visible/functional and I woul...
Take a look at http://sensenich.bythepixel.com The top menu, when you hover over "Products" and expand "Propellers", everything works as it should. I want the Propellers to collapse when I hover away from the menu, which it does. However it also collapses the propellers when I try to click on "Accessories". I can't for the life of me...
A flash movie is loaded on a page via javascript (replaceChild on a div) I add jquery datepicker to a input above this movie. When the datepicker (or other jquery element) is shown, it is shown under the movie (wrong zorder) The element do have "z-index: 99" in its css class How do i bring the jquery element up? [Edit] Theres no s...
For some reason the right frame keeps jumping out of the frame set. When the frame is run independently, it works fine.... here is the URL: http://www.linkwell.info/test/ ...
If i click video1 that will play on top means, if i click video2 tat ll play on the same space. Can anyone help me with iframe codes? ...
Jquery test the validity of a date via: !/Invalid|NaN/.test(new Date(value)) new Date(dateString) is the same as Date.parse(dateString) and uses browser/os locale to parse the string. im trying to parse DD/MM/YYYY but i get an error because my browser is looking for MM/DD/YYYY. Since my product will be used only by DD/MM people, i wa...
Hi, Is there a way to detect from where the text come (if it's not pure HTML) for example document.write ('ok') will write ok somewhere in the page. But it doesn't show up in HTML, it's dynamic. My problem is that I want to know where 'ok' comes from, when I have a long/complicated source of code. Any idea? ...
Hi, I'm looking for a way to search the generated source of a webpage ( document.innerHTML) for a string, in javascript. I wouldn't want to use window.find() since i might have to look for id's or names too. Any help would be appreciated. Thanks ...
<a href="http://twitter.com/theusername">Click</a> For some reason, it pops up the download instead of going to the page. Edit: When I close IE8 and open it again, it works again. Then, the 2nd time, it won't work. I have to close and open IE8 each time for it to work. ...
Hi, I have numbers in javascript from 01(int) to 09(int) and I want add 1(int) to each one. For example: 01 + 1 = 2 02 + 1 = 3 But 08 + 1 = 1 09 + 1 = 1 I know the solution. I've defined them as float type. But I want to learn, what is the reason for this result? Thank you. ...
Hi, for Internet Explorer, I have the current code to select a range in an iframe with desingMode setting to on: var Range = window.document.selection.createRange(); var obj = { start: 3, end : 6} Range.collapse( true ); Range.moveStart( 'character', obj.start ); Range.moveEnd( 'character', obj.end - obj.start );...