I have a base html page which contains several thumbnail images with links to enlarged images which I'd like to view in an external page [so I can control the dimensions of the enlarged image]. I thought it best to use an externaltemplate html page to launch these within and therefore imagine I need to declare the variable in the thumb links page & image they may need to look something like this:
As it is shown in line 2 does everything perfectly, but I must declare the variable outside the function, as it implies the following code (line 1). marcel var wert = "text"; $('#bChange' ).click(function() { $.ajax({ url:"content/nextpage.php", type:"POST", timeout: 5000, dataType:'html', cache:false, data: { rNeuRecht: wert }, success:function (msg){ $("#leer").html(msg); }});}); $('#bChange' ).click(function () { $.ajax({ url:"content/nextpage.php", type:"POST", timeout: 5000, dataType:'html', cache:false, data: { rNeuRecht: "text" }, success:function (msg){ $("#leer" ).html(msg); }});});
i am trying to create a form that where the page will not refresh if the form is submitted specially if the user inputs any errors in the form my problem is i do not know how to send multiple variables using jquery to a php file i saw somewhere that in order to do this you need to concatenate the variables you will be sending this is the code i am using
the jquery successfully sends the variable to the php file the problem is once i insert it into a database all the variables i sent are concatenated for example in the column stud_no once you send the form this is what will be inserted "123123name=asdasd"
I am trying to set up a five star rating system, I found a stock framework that I am adding to but I ran across a problem.
I cannot get the rating "number" to pass through the AJAX get call:
Code:
/* Author: Addam M. Driver Date: 10/31/2006 */
[Code]....
The problem is in the sendRate function. It has the variable sel passed into it, and if i try to send sel.title it passes the title according to what the user selects, however, if i try to just pass the "sel" it doesnt get through..
how to send the value of "sel" variable to me perl script?
I'm not very familiar with javascript, but I want to get a variable called $page and then set it as the save.php?savepage=$page link. Anyone please tell me how to do it?
I am trying to send a variable between flash and js. the javascript is on the same html page. and since nothing is working i tried the most basic thing. in the html i have an alert like this:
Code:
Also i have in the body of the html the tags to hold the flash and i added an id:
Code:
And in the flash i have a btn that has this:
Code:
I think it is all correct but IT IS NOT WORKING! not in firefox and not in ie6 so i am thinking that it is some thing with my browzers or my computer (in other cases i do get an alert message so i know the js is working).
I am trying to pass a php variable to a javascript file via a link. The link is set up as follows: <a href="video-details.php?src=<?php echo $row_videos['YouTube_Ref'];?>">
The javascript variable is a s follows:
Code: var id = 'flash'; var src = "<?= $src ?>"; var params = {allowScriptAccess:"always"};
I am trying to make a variable link on a page. The page has a text box for a stock symbol. The code is: <input type=TEXTBOX Name="symtb" value="" size="10>
The value of the text box {the stock symbol} will complete the url.
I found code for a variable link: <script language="JavaScript"> <!-- function variable_in_link(varible_value) { new_win = window.open('http://finance.yahoo.com/q?s=" + varible_value'') } // --> </script>
The link I am trying to use is: <a href="javascript:variable_in_link(symtb)">The text</a>
No matter what I do the variable_value comes back as undefined. There is always a value in the text box.
For ease of future modifications on my page, I want to have a list of URLs stored in an Array, and I want to then use these URLs in an href tag. Something like this:
How is something like this possible, as well as being fairly crossplatform, and intuitive? I've changed the syntax, and tried various other things to no avail.
I have an existing website I an trying to modify. In speedscript I have my include libraries and a veriable. Then I need to do an href with a link I have the code as follows <a href="WI_testweb/" + "custno" + ".xls">Matrix</a> The custno is the variable. Is there a way of doing this since the way I an trying is not working?
I have an webbpage, and in the middle of it there is an iframe to a php site. So i have used this code, so after some seconds the iframe will send the guest to another page. <meta http-equiv="refresh" traget="_top" content="5 url=http://mypage.com"/> But the thing is that i want the WHOLE page to reload, and go to that page after 5 seconds (we can say). With that code, only the iframe are going to another page. Is it possible to make the whole page send the user after some seconds, to another page and not only the iframe?
I'm using the following code (simplified version) to call a Json file, parse it and on each iteration, create a div with an ID of "tab". I'm using this with jQuery UI .tab() to create a listing with entries which have three tabs. Anyhow, the principle seems to work except that when I examine what's happening behind the scenes using Firefox console, I see that each href in the html code produced is causing the Json function to re-fire using the href as it's url target.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head>
I am facing some problem with this when i am trying to sent the data in krnlAddComment1.asp page and there is only an insert query exists. after run the query successfully, response.write "...." revert back to me
I have an error when I POST to a page. Whatever monetary choice of donation that is made, the POST does not work to send the values to the next page and the default value of $20.00 is registered.
After looking at my code for a day I dont see the errorL
Here is the code
Contributions are tax deductible for residents of the United States and Jamaica.
Yes, I want to become a contributor. Please accept my donation as indicated below.
[/code]
Here is the test site. [url]
For this test all menu choices takes to the Donation page.
I'm trying to create a player stats page, for my gaming server. I spoke to a guy who knows a little about javascript, and he told me there's a way to use document.location.href to direct to a custom page URL.
For example, if I search for a name, and the results are displayed. I want to click the players username, and be directed to. [url] without the "username.html" actually existing.
I heard it's possible, and it would save me a lot of time because I don't want to have 20,000+ individual pages, one for each username.