/    Sign up×
Community /Pin to ProfileBookmark

GET from parent to iframe size limit?

I’m sending a simple get to populate the souce of the page’s iframe with the proper info:

<a href=”#” onclick=”document.getElementById(‘iframe’).src=’notes.php?id=1′;return false;”><img src=”../images/icon_doc.gif” width=”20″ height=”18″ border=”0″ align=”absmiddle” /></a>

When I begin to add additional values to my GET such as:

src=’notes.php?id=1&record=4

All values cease to be included in the link. All that comes through is:

notes.php?

This is working elsewhere but not to an iframe. Anyone have any ideas?

Also worth mentioning (maybe) is the fact that there are two links to the iframe that are adjacent to one another. Here is the entire snip:

<div class=’leftBold’>Agent: </div><div class=’rightTined’><a href=”#” onclick=”document.getElementById(‘iframe’).src=’agent_assign.php?agent_id=<? echo $agent_id ?>&function=view’;return false;”><? echo $agent_name ?></a><a href=”#” onclick=”document.getElementById(‘iframe’).src=’agent_notes.php?id=<? echo $id ?>’;return false;”>&nbsp&nbsp;<img src=”../images/icon_doc.gif” width=”20″ height=”18″ border=”0″ align=”absmiddle” /></a></div><br>

TIA, Jeff

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@jmurchauthorJan 31.2008 — This was a stupid but unforseen error. As part of development I created the parent link and when I click the link let the iframe populate with a 'page not found' error since the iframe src file had not been created yet.

I checked the properties to see if the proper entire url was sent or not. When the ?get_value was over a certain length (sorry didn't care what the exact length was) everything after the ? dropped off.

When I created the target file for the iframe src everything worked as it should.

It seems that the browser kicks in the error when the page is not found but will continue to collect the url info to display in the properties for a moment longer than it takes to realize that the file is not there.

Jeff
×

Success!

Help @jmurch 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 6.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: @nearjob,
tipped: article
amount: 1000 SATS,

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

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...