pass link to text field

W

wutzke

That link is the page with the DIV enclosing the links I want to pass
to the text box below it.
That DIV contains a (java)script that has the link

<div id="buzzcloud_5c991299_271c_4aa5_b57d_091a6480ceea_RND_"
class="_QUICK_FORMAT_"><div
id="swickiSearch_5c991299_271c_4aa5_b57d_091a6480ceea_RND_"
class="swickiSearch"><iframe
id="swickiIframe_5c991299_271c_4aa5_b57d_091a6480ceea_RND_"
allowtransparency="true" src="http://swicki.eurekster.com/
eur_externalsidebar_searchbox.php?gid=5c991299-271c-4aa5-
b57d-091a6480ceea&target=_top" scrolling="no" marginwidth="0"
marginheight="0" frameborder="0" vspace="0" hspace="0"></iframe></
div><div id="hotsearches" class="hotcloud"><a href="http://pubsub-
swicki.eurekster.com/Gadget+1/" title="Hot Search for Gadget 1"
target="_self" style="font-size:_TAG_FONT_SIZE_2_px;"
class="suggested_search snap_nopreview">Gadget 1</a>&nbsp;&nbsp; <a
href="http://pubsub-swicki.eurekster.com/Gizmo+2/" title="Hot Search
for Gizmo 2" target="_self" style="font-size:_TAG_FONT_SIZE_1_px;"
class="suggested_search snap_nopreview">Gizmo 2</a>&nbsp;&nbsp; <a
href="http://pubsub-swicki.eurekster.com/Headlines/" title="Hot Search
for Headlines" target="_self" style="font-size:_TAG_FONT_SIZE_0_px;"
class="suggested_search snap_nopreview">Headlines</a>&nbsp;&nbsp; <a
href="http://pubsub-swicki.eurekster.com/PubSub/" title="Hot Search
for PubSub" target="_self" style="font-size:_TAG_FONT_SIZE_4_px;"
class="suggested_search snap_nopreview">PubSub</a>&nbsp;&nbsp; <a
href="http://pubsub-swicki.eurekster.com/Weather/" title="Hot Search
for Weather" target="_self" style="font-size:_TAG_FONT_SIZE_3_px;"
class="suggested_search snap_nopreview">Weather</a>&nbsp;&nbsp; <div
id="cloudfooter"></div> </div></div>

These links are fairly dynamic and sorta hidden by the javascript
call.

One Div appears to be "hotsearches". Can I pass the links contained in
that DIV to the form field?
 
T

Thomas 'PointedEars' Lahn

wutzke said:
That link is the page with the DIV enclosing the links I want to pass
to the text box below it.
That DIV contains a (java)script that has the link

The "link is the page"? Please get your terminology right first, ...
[Illegible junk]
[...]
[Top post]

.... and read the FAQ, last but not least on how to post.

http://jibbering.com/faq/


PointedEars
 
A

Aaron Saray

That link is the page with the DIV enclosing the links I want to pass
to the text box below it.
That DIV contains a (java)script that has the link

<div id="buzzcloud_5c991299_271c_4aa5_b57d_091a6480ceea_RND_"
class="_QUICK_FORMAT_"><div
id="swickiSearch_5c991299_271c_4aa5_b57d_091a6480ceea_RND_"
class="swickiSearch"><iframe
id="swickiIframe_5c991299_271c_4aa5_b57d_091a6480ceea_RND_"
allowtransparency="true" src="http://swicki.eurekster.com/
eur_externalsidebar_searchbox.php?gid=5c991299-271c-4aa5-
b57d-091a6480ceea&target=_top" scrolling="no" marginwidth="0"
marginheight="0" frameborder="0" vspace="0" hspace="0"></iframe></
div><div id="hotsearches" class="hotcloud"><a href="http://pubsub-
swicki.eurekster.com/Gadget+1/" title="Hot Search for Gadget 1"
target="_self" style="font-size:_TAG_FONT_SIZE_2_px;"
class="suggested_search snap_nopreview">Gadget 1</a>&nbsp;&nbsp; <a
href="http://pubsub-swicki.eurekster.com/Gizmo+2/" title="Hot Search
for Gizmo 2" target="_self" style="font-size:_TAG_FONT_SIZE_1_px;"
class="suggested_search snap_nopreview">Gizmo 2</a>&nbsp;&nbsp; <a
href="http://pubsub-swicki.eurekster.com/Headlines/" title="Hot Search
for Headlines" target="_self" style="font-size:_TAG_FONT_SIZE_0_px;"
class="suggested_search snap_nopreview">Headlines</a>&nbsp;&nbsp; <a
href="http://pubsub-swicki.eurekster.com/PubSub/" title="Hot Search
for PubSub" target="_self" style="font-size:_TAG_FONT_SIZE_4_px;"
class="suggested_search snap_nopreview">PubSub</a>&nbsp;&nbsp; <a
href="http://pubsub-swicki.eurekster.com/Weather/" title="Hot Search
for Weather" target="_self" style="font-size:_TAG_FONT_SIZE_3_px;"
class="suggested_search snap_nopreview">Weather</a>&nbsp;&nbsp; <div
id="cloudfooter"></div> </div></div>

These links are fairly dynamic and sorta hidden by the javascript
call.

One Div appears to be "hotsearches". Can I pass the links contained in
that DIV to the form field?

Are you trying to just get the target or the whole content of the A
tag? You could attach and event handler to loop through the div's A's
and either extract the self.href or add onclick handlers to fill a
different items' 'value' with self.href - and of course return false()
after.

So, for example, if you had a text box with id="targetbox", you could
have this on your A.... <a href="blah.html"
onclick="document.getElementById('targetbox').value=self.href;return
false">Goto blah!</a>

There might be a more efficient way to do this - or I'm not
understanding fully what you're trying to accomplish either.
-aaron
 
W

wutzke

thanks aaron
I am trying to get the link target.
I'm using the cloud from eurekster because of it's flexiblity. But
before I go to the result page generated by that (cloud)link, I'd also
like to pass the link to a text field for use. Once the link is
clicked on, the page will still open as normal, only within a frame.
Using the link captured in the text field, I would then create a
second frame and feed the (edited) contents to a custom search.

This is all for a google gadget I've been working on.
http://michael.wutzke.googlepages.com/pubsubbot.xml
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,772
Messages
2,569,591
Members
45,103
Latest member
VinaykumarnNevatia
Top