Jesse,
One clarification:
Actually the JS does work. If I put in an alert() to test it, the
alert comes up. But what appears to be happening is that the Frames
definition isn't honored when I load the page using Javascript. I can
do this parent.WorkingWindow.document.addnew.notesprojecttitle.value
= projectname; when the page is loaded from a link, but it doesn't
work when the page is loaded via javascript.
does that make sense?
Mark
On Apr 25, 2008, at 10:34 PM, Mark Weiss wrote:
Jesse,
Perfect, just perfect. This works great.
Now another anomaly.
When I load the list as outlined in the prev post, using a link,
and click on a js onclick link to transfer information from one
frame to another,
<script type="text/javascript">
<!--
function fillleft(projectname){
parent.WorkingWindow.document.addnew.notesprojecttitle.value =
projectname;
parent.WorkingWindow.document.addnew.notesclassname.focus();
}
//-->
it works perfectly.
However, if I load the list, using js
function filldetail(frameno,wifunction){
var marky = "http://"+"<@cgiparam server_name><@appfile>?_function=";
var cyndy = wifunction;
var joseph = "&"+"<@userreferenceargument>";
var family = marky + cyndy + joseph;
top.frames[frameno].location.href=family;
}
(pardon the var names)
the js function fillleft does not work at all.
<table><TR>
<TD><a href="javascript:fillleft('Term Paper');"><IMG SRC="/
coolcontent/images/left.png" ALIGN=LEFT ALT="" border="0"
width="17" height="17"></a></td>
</tr></table>
What could possibly be the difference?
I keep asking myself, what could be the difference between the
frame loaded from a link vs loaded from js that would keep a simple
js link working?
Any ideas?
Mark
On Apr 25, 2008, at 8:05 AM, Jesse Parker wrote:
You might be losing your user reference cookie.
In the JS, you are specifically using "www.homepage.com". Maybe your
userreference cookie was set for e.g. "homepage.com" - the two are
very
different to your browser.
Here is a pretty surefire way to make this work:
top.frames[3].location.href = 'http://<@CGIPARAM
SERVER_NAME><@APPFILE>?_function=Loadstuff&<@USERREFERENCEARGUMENT>';
-----Original Message-----
From: Mark Weiss [mailto:[EMAIL PROTECTED]
Sent: Friday, April 25, 2008 10:58 AM
To: [email protected]
Subject: Witango-Talk: Javascript and uservars
Hi all.
I am on the road and have had a funny thing happen.
Can anyone help me understand why when using
top.frames[3].location.href= "www.homepage.com/tango.taf?
_function=Loadstuff";
user vars would go away?
I am selecting for a db using a user var and if I this action using a
link it works fine. If I hit it using JS the uservar is ignored?
Any ideas?
Mark Weiss
_____________________________________________________________________
___
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
_____________________________________________________________________
___
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
Mark Weiss
http://trustthechildren.blogspot.com
______________________________________________________________________
__
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
Mark Weiss
http://trustthechildren.blogspot.com
________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf