Well i do have a mysql query in one php page(php_1) & I want to submit the variables to the query in different php page(php_2) via form action but how am I supposed to do it without redirecting to php_1..All I need is to post the data to the first php page query so that It performs some action over there & thats all... So hoping sumone who knows ajax might helpme out with a sample code or point me in the right direction.
php_1 page :- $query = ("SELECT * FROM state4 WHERE (LONG_HI<'".$_POST['Ymax']."')"); php_2 page:-
Our company own a lot of domains and want to put a short page of copy on each address along with keywords before redirecting the user to our main site. I have been able to get the page to load the main site after the desired time using this code in the head...
That works perfectly, I am now trying to display a countdown timer from 40 seconds down to 0, and on 0 redirect the user. Saying something like "You will be redirected in XX seconds". Is there anyway of doing this? I've been searching google for the answers with no luck and can only seem to find timers that countdown to a set date.
What i am trying to do is the following: I read a tutorial on objects and thought i would try it out. The tutorial taught me how to make a function calculating the areal and circumspherence of the circle where the user input would be the radius.
To sum up: I want to make it possible for the user to write, say, "2" in the form text field and click "Calculate" and then the text will appear w/o reloading the page. I could easily do this by removing the objects but as i am training my object skills i would like to know if it is possible to do this with objects?
The problem is that i dont know how to take the user input. I know that in PHP it is "$_POST["name"]" but what is it in JS? And is it possible to jump into PHP and use $_POST inside the JS script or how can this be done?
This is my code so far (It prolly looks strange but i really dont know how to get it to work).
<script type="text/javascript"> function Circle(radius){ this.radius = radius; this.getArea = function(){
[Code]....
As you can see i have a predefined object: bigCircle. What i want to do is change the new Circle(100) to new Circle(USER INPUT HERE).
Basically, I registered for a free board at one of the various sites because my server doesn't support .cgi scripts. I want to know if there is a way to have the data from a form on my site post to the board site -A user would fill in my form, click submit, and a new post would appear on the board site -as if they had entered it there. If you can point me in the right direction, I would be grateful. Here is my thinking.
A) I can't locate the script that they use to perform a "submit"; so I thought I might enter their <head> data (as far as xmlns, href, etc) in my <head>; that my website might call up their script files, css sheets, etc.
B)I could code my own Javascript function to send my form data to their site. If I knew how to simulate a mouseclick on someone else's site, I could have the script "click" there, paste the data, and hit the submit button. But I don't.
C) I could size their site down to the form itself and put it in a frame on my page
Option C is clearly easier, but I would prefer option A or B. I have time and will happily do the research myself; provided that I know if approach A or B is even feasible.
for example there is site with address www.X.com, that has the price of some product:<div id="product1">price: 100$</div>now I wanna make site www.Y.com and then, I wanna read the price of product1 which is in the site www.X.comwe can read the value in the html site with javascript command like this:String s = document.getElementById("product1").valuebut how can we read this value in out of that site automatically?
I am looking to use the outputted data of the US Census' world population clock as the raw data for a javascript function on another site - does anyone know if it is possible, looking at their site?
I have a webpage for insurance agents that the agent will login and then enter some insured information.
There is a field named "agentnumber" that is on the form, but is hidden by a display:none. The field is set from the username of the person who logs in whenever the form loads the first time. The form will save automatically when the user leaves the page.
I am experiencing a weird issue that every now and then, the agentnumber field is getting saved with incorrect data. After discussing it with the agent, it is being saved with the agentnumber of the agent from other companies, not from the my website. what may be happening as I thought browser security would prevent cross site javascript. The users are using IE 7 & IE 8.
collecting players name and it will make a rank/tables by itself.Theres a link for each players of course but i dont remember ALL of them :P.its like manipulating the stats and compile a rank.
I am trying for a javascript code that would ask for the excel file location when run, fetch data from two columns till eof in an excel file (MS Excel 2010), append it to an existing text file and upload the plain text file to an ftp location.
The ftp username, password and location needs to be hard coded in the script.
I am new to JavaScript and I have been sifting through the previous posts about some specific help I need with a redirect problem. No luck there! Could someone take a look and give me some suggestions. I could really use some help.
What I am trying to accomplish is the following:
-grab the user bookmarked URL. -strip some of the URL from the beginning -pass what's leftover of the URL and append that to a new URL. -i would then like to call this function in the body tag and pass it to onLoad
<HEAD> <script> var domain=window.location.href; var domain2 = domain.substr(0,29); document.write("https://hfdev1.test.com/rw"+domain2")
function test() { document.location.href="https://hfdev1.test.com/rw"+domain2" } </script> </HEAD> <body onload="test()">
I need to re-direct site visitors to a new URL, but I don't want that URL to appear in the Address field in the browser. I'm sure I've read somewhere that there is a way to do this, but I can't find it. Does anyone know this, or have I dreamt it?
Hi I'm trying to hack together a simple login (ish). The idea is to give the impression of a login when all I'm really doing is using the password to redirect a client to their own sub directory.
But I'm now stuck. Here's what I've put together so far. I'm a complete novice at Javascript - but I'm sure you'll see that. Code: <body> <SCRIPT LANGUAGE="JavaScript">
<!-- Begin function submitentry(){ var password = '' password = document.login.password.value.toLowerCase() if (password != null) { location.href= password + "/index.htm"; } // End --> </SCRIPT>
I'm working on a page that uses javascript very much. My problem is now that i cannot redirect to another page in IE with window.location =<URL>; This command gets executed (proofed with alert messages) but nothing happens. FF acts like expected but i cant get it work in IE. What can be the problem here?
I have a modest website that uses a lot of Javascript.
If anybody views the site and does not have Javascript enabled I want to politely redirect them to another page, so I put this bit of code in my <head> section :
So far so good. It appears to work, *and* it passes the the 'W3C MarkUp Validation Service' test ( http://validator.w3.org/ ).
Now the bad news: Google doesn't index my site any more, presumably because their crawler always gets redirected.
Does anybody have a solution to this dilema, please? Redirecting to a 'with-script' page is not an option because my page is linked-to by many other sites.
I want to redirect all pages from one website to another. They will be permanent redirects, but I am looking for a way to make it look cool.
Is it possible (It does not HAVE to be a 301 redirect) that when someone goes to a page on the old website, they automatically go to the new website with a message explaining the transfer, and everything around the message goes grayscale until the user clicks ok...?
Why is it that we use bridge pages that say 'If you're not redirected...'.I can see it if you've moved a page and want the user to see the new url before redirecting, but are there other reasons? Does a meta refresh or window not work in some browsers?
Following is my problem def: Load a HTML page and set the form fields on that page and submit it using javascript. I tried following code: I wrote a html file with following code in it.
Page where I'm redirecting user after 5 seconds to another page. This part of the script seems to work fine and redirects to the URL I want. However, the issue comes when I try and add parameters onto the URL. The redirect will stop working. I believe it's a formatting issue, as I've used the code in a different application. [code]...
I want to know if there is a way to prevent users from manually typing in the URL and entering the page after they have already signed out?
I was able to make the back button disabled.
Let's say if they have already click logout and when they click back, it won't go anywhere, which is what I want.
But, if they manually type in the url address, it will take them to that page. What I want to do is after they logout and whenever they try to type the url, it should not take them to that page, but instead to the login page.
I'm working in an .asp page where the user can delete a record. However i want an alert window to be displayed when the user clicks on delete asking the user if he really wants to or not ( the kind that has the two buttons ). If the user clicks no then the record delete is cancel, and if the user click yes then if goes to the page where it will be delete it.
Disclaimer 1: I am not a programmer, just a curious designer, so please take that into consideration in your replies.
Disclaimer 2: Despite all advices against it, I couldn't find a better solution to my website than using iFrame
Disclaimer 3: Before asking for help, I researched *several* forums and although I found people discussing similar issues,
implementing a method to intercept and redirect external links to a dynamic iframe. By "dynamic" iframe I mean an iframe whose SRC would be filled up in accordance to the external URL being intercepted and that it would resize its HEIGHT accordingly in order to avoid scroll bars.The function for resizing the iframe id="child" is already correctly implemented like so:
<script language="JavaScript"> <!-- function calcHeight()[code]...
This "replacement" function would be called onLoad and if tested true would run and refresh the page with the proper value in the iframe SRC.All this should be accomplished while still making the iframe HEIGHT dynamically adjustable and show a "clean" URL in the browser, such as "http:[url].....The potential issues I foresee is an infinite loop due to two onLoad queries (one for SRC, another for HEIGHT) in the parent and child objects, which might required a merge into a single script.