Jump to content

Variable Declaration / Initiation


aball65

Recommended Posts

Clicking the Q/PL button as defined by the following HTML:

<td>
<form>
<input class="mediumbutton" type="button" value="Q P/L"
onClick=popQIPLWindow(02132006205725) title="Query Parts and Labor">
</td>
</form>

and Javascript:

function popQIPLWindow(rcvnum)
{
var varrcvnum=parseInt(rcvnum);
url = 'http://localhost/lawnmower/qipl.php?rcv_num=' + varrcvnum
window.open(url,'mywindow','left=525 width=475,height=320,resizable=yes,scrollbar=yes,location=yes');
return true;
}

results in the following screen pop 75% of the time:

[a href=\"http://localhost/lawnmower/qipl.php?rcv_num=2132006210949\" target=\"_blank\"]http://localhost/lawnmower/qipl.php?rcv_num=2132006210949[/a]


and the following screen pop 25% of the time:

[a href=\"http://localhost/lawnmower/qipl.php?rcv_num=149520190421\" target=\"_blank\"]http://localhost/lawnmower/qipl.php?rcv_num=149520190421[/a]

The following is the screen pop I need:

[a href=\"http://localhost/lawnmower/qipl.php?rcv_num=02132006210949\" target=\"_blank\"]http://localhost/lawnmower/qipl.php?rcv_num=02132006210949[/a]

Any help would be greatly appreciated - Thanks.
Link to comment
Share on other sites

[!--quoteo(post=345555:date=Feb 14 2006, 02:16 AM:name=aball65)--][div class=\'quotetop\']QUOTE(aball65 @ Feb 14 2006, 02:16 AM) [snapback]345555[/snapback][/div][div class=\'quotemain\'][!--quotec--]
Clicking the Q/PL button as defined by the following HTML:

<td>
<form>
<input class="mediumbutton" type="button" value="Q P/L"
onClick=popQIPLWindow(02132006205725) title="Query Parts and Labor">
</td>
</form>

and Javascript:

function popQIPLWindow(rcvnum)
{
var varrcvnum=parseInt(rcvnum);
url = 'http://localhost/lawnmower/qipl.php?rcv_num=' + varrcvnum
window.open(url,'mywindow','left=525 width=475,height=320,resizable=yes,scrollbar=yes,location=yes');
return true;
}

results in the following screen pop 75% of the time:

[a href=\"http://localhost/lawnmower/qipl.php?rcv_num=2132006210949\" target=\"_blank\"]http://localhost/lawnmower/qipl.php?rcv_num=2132006210949[/a]
and the following screen pop 25% of the time:

[a href=\"http://localhost/lawnmower/qipl.php?rcv_num=149520190421\" target=\"_blank\"]http://localhost/lawnmower/qipl.php?rcv_num=149520190421[/a]

The following is the screen pop I need:

[a href=\"http://localhost/lawnmower/qipl.php?rcv_num=02132006210949\" target=\"_blank\"]http://localhost/lawnmower/qipl.php?rcv_num=02132006210949[/a]

Any help would be greatly appreciated - Thanks.
[/quote]

localhost links won't work over the web I'm afraid. Substitute your IP address in its place.
Link to comment
Share on other sites

[b]Change this:[/b]
<input class="mediumbutton" type="button" value="Q P/L"
onClick=popQIPLWindow(02132006205725) title="Query Parts and Labor">

[b]to this [/b](send a string to the onClick function):
<input class="mediumbutton" type="button" value="Q P/L"
onClick=popQIPLWindow("02132006205725") title="Query Parts and Labor">

[b]AND change this:[/b]
function popQIPLWindow(rcvnum)
{
var varrcvnum=parseInt(rcvnum);
:
:

[b]to this:[/b]
function popQIPLWindow(rcvnum)
{
var varrcvnum=rcvnum;
:
:


I think that would give you the right value..

/micke


Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.