Đang Thực Hiện

565667 Need small script.... 2

hi what i am trying to do is have a main field on a form with a fill button next to it and the rest of the form is uneditable. the main box is a url box and if a member adds a url to it and clicks the fill form button or even if it grabs the info while it is typed into the input field i want it to run a php function i have made and return the results into the rest of the form using ids and then once it has filled the form they can click submit and post the form.

i would prefer this in AJAX if possible so it fills the results in real time.

can anyone help.

i have had these suggestions

Quote:

you will need to either convert the PHP to javascript some how, consider submiting the info via ajax and parsing an XML response or submit the file twice, once to process the PHP, once for the actual submit. unfortunately, that's the best option since it offers the most accessibility.

Quote:

simple have the form submit to one page that runs the script, and at the same time configures the new action atribute of the form to the page to do your other stuff.

and also i would like a quote to convert it into a vbulletin plugin. thats 1 price for the job and the exatra price for vbulletin plugin.

this was originally made for me some years back but lost the actual file [url removed, login to view] that has the grabber code to grab imdb info then it uses the following js code

<script type="text/javascript">

function ax()

{

if([url removed, login to view]('btnS').value=="Fill")

{

[url removed, login to view]('txtTitle').value = "";

[url removed, login to view]('nzbimage').value = "";

[url removed, login to view]('nzbinfolink').value = "";

[url removed, login to view]('vB_Editor_001_textarea').value = "";

axtitle();

aximg();

axlink();

axdesc();

}

}

function axtitle()

{

var uri = [url removed, login to view]('url').value;

var xt = ([url removed, login to view]) ? new ActiveXObject("[url removed, login to view]") : new XMLHttpRequest();

if (xt)

{

[url removed, login to view] = function()

{

if ([url removed, login to view] == 4 && [url removed, login to view] == 200)

{

[url removed, login to view]('txtTitle').value= [url removed, login to view];

[url removed, login to view]('btnS').value="Fill"

}

}

[url removed, login to view]('btnS').value="Filling...";

[url removed, login to view]("POST", "[url removed, login to view]"+uri+"&preq=title", true);

[url removed, login to view]("purl="+uri+"&preq=title");

}

}

function aximg()

{

var uri = [url removed, login to view]('url').value;

var xi = ([url removed, login to view]) ? new ActiveXObject("[url removed, login to view]") : new XMLHttpRequest();

if (xi)

{

[url removed, login to view] = function()

{

if ([url removed, login to view] == 4 && [url removed, login to view] == 200)

{

[url removed, login to view]('nzbimage').value= [url removed, login to view];

[url removed, login to view]('btnS').value="Fill"

}

}

[url removed, login to view]('btnS').value="Filling...";

[url removed, login to view]("POST", "[url removed, login to view]"+uri+"&preq=img", true);

[url removed, login to view]("purl="+uri+"&preq=img");

}

}

function axlink()

{

var uri = [url removed, login to view]('url').value;

var xi = ([url removed, login to view]) ? new ActiveXObject("[url removed, login to view]") : new XMLHttpRequest();

if (xi)

{

[url removed, login to view] = function()

{

if ([url removed, login to view] == 4 && [url removed, login to view] == 200)

{

[url removed, login to view]('nzbinfolink').value= [url removed, login to view];

[url removed, login to view]('btnS').value="Fill"

}

}

[url removed, login to view]('btnS').value="Filling...";

[url removed, login to view]("POST", "[url removed, login to view]"+uri+"&preq=link", true);

[url removed, login to view]("purl="+uri+"&preq=link");

}

}

function axdesc()

{

var uri = [url removed, login to view]('url').value;

var xd = ([url removed, login to view]) ? new ActiveXObject("[url removed, login to view]") : new XMLHttpRequest();

if (xd)

{

[url removed, login to view] = function()

{

if ([url removed, login to view] == 4 && [url removed, login to view] == 200)

{

[url removed, login to view]('vB_Editor_001_textarea').value = [url removed, login to view];

[url removed, login to view]('btnS').value="Fill"

}

}

[url removed, login to view]('btnS').value="Filling...";

[url removed, login to view]("POST", "[url removed, login to view]"+uri+"&preq=desc", true);

[url removed, login to view]("purl="+uri+"&preq=desc");

}

}

</script>

to fill the form in real time

Kĩ năng: AJAX, Bất kì công việc gì, PHP

Xem nhiều hơn: xmlhttp readystate 0, what's the best job, true results, parsing input, if xmlhttp.readystate 4, how to do a quote for a job, action script job, xt, text parsing, need js file, js script, document accessibility, ax, send ajax button, open input file php, xmlhttprequest, need small, javascript function response, php open input file, purl php script, php xml file parsing, form submit xml, real small, click button open window, php parsing text

Về Bên Thuê:
( 1 Nhận xét ) Manchester, United Kingdom

ID dự án: #2311626