/    Sign up×
Community /Pin to ProfileBookmark

popup window

Hi,
I want to open the page for price in a popup window and I also want to pass the following two hidden variables to the price page:

<table bgcolor=”#5389BC” width=”600″ align=”center” cellspacing=”1″ cellpadding=”4″>

<tr>
<td width=”200″ class=”columnLabel”><a href=”/Web/Workflow?action=SearchForm&amp;TableName=Prc”>Price</a></td>
</tr>

</table>

<input type=”hidden” name=”recId” value=”1″>
<input type=”hidden” name=”recName” value=”price”>

Please can someone help me with this?

Thanks,

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@soccer362001Aug 13.2003 — Here is a popup script.


<script language="JavaScript">

<!--

window.open("noname.html","title","toolbar=0,location=0,directories=0,menuBar=0,scrollbars=0,resizable=0,width=320,height=120,left=100,top=100");

//-->

</script>
Copy linkTweet thisAlerts:
@miliauthorAug 13.2003 — Thanks...but I need to be able to pass some variables to the new popup window.I cannot concatenate with the url string because my variables are way too large.How can I do this?
Copy linkTweet thisAlerts:
@cflynnAug 13.2003 — <head>

<script language="javascript">

<!--

function showPrice() {

window.open("about:blank", "price", );

document.form1.submit();

}

-->

</script>

</head>

<form name="form1" method="get" action="yourFormHandler" target="price">

<input type="hidden" name="recId" value="1">

<input type="hidden" name="recName" value="price">

</form>

<a href="#" onClick="showPrice();">Price</a>

Hope this helps.
×

Success!

Help @mili spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...