Linking listbox to frames
ok basicly i have a listbox which gets data striaght from my sql database and i was wondering how i could link each value with in the list box to each frame so that when a item is selected in the list box it goes to a frame like how button uses gotoandplay as such
this is my code which i use to get the data from the database
var theXML:XML = new XML();
theXML.ignoreWhite = true;
theXML.onLoad = function() {
var nodes = this.firstChild.childNodes;
for(i=0;i<nodes.length;i++) {
theList.addItem(nodes[i].firstChild.nodeValue,i);
theXML.load("http://localhost/project/php/question.php");
thank you
While you are adding the data to the List, include the frame information as an added piece of data for each entry. Look in the help documention to see how to use an object to add both label and data parameters to the List for each entry.
To make the List act like a button, look into using a listener for the Event.CHANGE occuring to detect when a selection is made. This is also explained in the help documentation as well as other events that you might prefer to omonitor for instead. The event handler function can use the selectedItem frame data in a gotoAndStop() or gotoAndPlay() command.
The documentation has several examples that should be helpful for you. Look into how a DataProvider is utilized to load up the component.
Similar Messages
-
Hi,
I would like to know as to how can I add links to open xml and csv files stored in another location? Please advice how to place links in my frame maker document?
Kindly advice.
Thanks
PriyaSpecial > Hypertext > Command "open document" will do its best to open the target document inside FrameMaker, which may not be much help; Special > Hypertext > Command "message …" will use the application you specify. The user guide for 7.0 says this about absolute links, and I don't think anything has changed since:
For example, to start PaintBrush and open the Ship.pcx file on drive C you would use the command message system pbrush.exe C:/Ship.pcx
I've not often used a relative link, and not recently: the same source says
folder levels are separated by a slash / even in Windows and Mac
[relative links] FrameMaker searches for a relative pathname beginning in the folder that contains the current document
[absolute links] FrameMaker searches for an absolute pathname beginning at the top of the file system. In Windows, the absolute pathname begins with the drive specifier, a colon and a slash. -
HTML link from external html page to link to a frame in swf
Hi
I am trying to set up something to should be fairly basic to
do .. but I cannot get it to work.
Need a link from another website to link to a frame label or
number in my flash movie.
Something like this ..
<a href="mySwfPage.php?label=labelnamehere&">Click
here</a>
My guess it will not work because I have several stop
functions and a preloader in the 1st frame not allowing the href
link to jump to the frame name I want.
Here is the page I am trying to apply this to -
http://www.mloudesign.net/tampico/index.html
We need for an external link to link to the espanol label so
that would start first, otherwise the english version plays 1st.
In case this helps this is the preloader I am using in frame
#1 ..
onClipEvent (load) {
total = _root.getBytesTotal();
onClipEvent (enterFrame) {
loaded = _root.getBytesLoaded();
percent = int(loaded/total*100);
text = percent+"%";
gotoAndStop(percent);
if (loaded == total) {
_root.gotoAndPlay(2);
Any help would be much appreciated.
Thanks!
~mlouhe! I'm not alone in my desperation. Take a look at my problem:
I've got a JEditorPane (not editable) inside a JFrame. The JEditorPane is loaded with the HTML text and all the links to anchors are working properly when I click on them.
BUT
If I try to go to an anchor from outside this JFrame I can see how the JEditorPane scrolls to the right anchor and suddenly it scrolls back to the place where the caret was located!!!
The "funny thing" is that my code is working in jdk1.3.1 but this is happening in jdk1.4.2. Is it a bug?!?!?!
How could I figure out what position I have to set the caret to for every anchor in order to get the scroll working correctly???
My implementation of hyperlinkUpdate (working properly, here isn't the problem):
jEditorPane.addHyperlinkListener(new HyperlinkListener() {
public void hyperlinkUpdate(HyperlinkEvent e) {
if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) {
MiEditorPane src = (MiEditorPane)e.getSource();
src.goToAnchor(e.getDescription().substring(1));
});My object jEditorPane is an instance of this class:
class MiEditorPane extends JEditorPane {
MiEditorPane() {
super();
public void goToAnchor(String anchor) {
super.scrollToReference(anchor);
}And this is the method I call from outside the JFrame containing the JEditorPane:
public void goToAnchor(String anchor) {
jEditorPane.goToAnchor(anchor);
}Any help greatly appreciated ... -
Properties panel, the Link listbox, pre-loading URL strings
Is there a way to customize the Link (URL) listbox, so that I
could select from a better list of previously-used links, rather
than entering or pasting or dragging a URL?
The Link listbox seems to store URL strings only from the
current DW session.
I am not sure where/whether DW stores URL strings beyond the
current session, but I would actually like to select from my
Mozilla bookmarks file, --or from a permanently-stored list of
links I have previously entered in the Props panel.
My work-around is to copy links to a work-page and save that.
(Lame.)http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_15598
http://blog.richnetapps.com/index.php?title=overcoming_the_flash_long_url_limitation&more= 1&c=1&tb=1&pb=1
All good, found these! -
Mouse over HTML link causes single frame to display at top of page Netscape only
Having a wierd problem. When you run the mouse over HTML
links on the page a single frame of the flash movie apears at the
top center of the page. It only happens in netscape in firefox
mode. IE, Opera, and Firefox do not have the problem.
Problem site
Thanks in Advance,
VorschThe problem goes away if i modify my .css file by removing
the
border: 1px solid #999999;
line from the "a:hover" style.
I ran my css file thru the validator at w3c and its fine. The
Page also validates as xhtml transitional.
and just a note the same file version is on my public server
and my testing server.
Has anyone ever seen this before?? I have several sites with
a:hover effects and flass media and have never run across this
before. -
Why won't Safari open links in a frame in a new window?
I am having trouble with Safari not opening links on a certain page. I am using OS 10.8.2 and Safari 6.0.2. The links on this site work in Firefox and Chrome, but not Safari. I have tried the same page on older computers with older versions of Safari, and they work like they always have.
The only thing I can think of that might be causing an issue is that the links reside on a frame within a webpage. If I hold down command and click the link it will open in a new tab, but I don't want to have to hold down the command key every time.
Thanks in advance for any help.
-KristenOkay, I think I know a little more about why Safari is having issues with these links. The link has some Javascript in it (onclick="logAction('Lesson Planet - Quick Link');return true;") that records that it was clicked for statistics logging:
<a href="http://www.sbceoportal.org/jsp/lesson_planet.jsp" title="Thousands of searchable lesson plans vetted by teachers." target="_blank" onclick="logAction('Lesson Planet - Quick Link');return true;">
<img src="quick_links_files/lesson_planet.jpg" width="230"></a>
When I take the Javascript out, Safari will open the link. I'd really like to leave the Javascript in, because we are recording statistics this way. Is there any workaround?
Thanks,
Kristen -
Getting links in one frame to open content in another...
Hello,
I would like links in the 'menu' frame of my site to open the
new page in another frame, called 'content'. Although I have
entered the name of the frame ('content') in the target box in the
link properties, the page consistently opens in a new browser
window. I am unable to upload the site at this time but I was
wondering if there are any common causes for this?
Thanks,
JulieYes, frames are problematic, I think the last site I designed
with frames
was about 7-8 years ago.
I advise using includes for elements that are used on
multiple pages,
i.e..... banner menu and page foot.
Jeff
"Murray *ACE*" <[email protected]> wrote
in message
news:[email protected]...
> The decision to use or not use frames should be based on
a) your site's
> needs, and b) your willingness to accept the potential
problems that
> frames can create for you as developer and maintainer of
the site and for
> your visitors as casual users of the site.
>
> I am down on frames because I believe that they create
many more problems
> than they solve.
> Judging from the posts here, and the kinds of problems
that are described,
> the kind of person most likely to elect to use frames is
also the kind of
> person most likely ill-prepared fo solve the ensuing
problems when they
> arise. If you feel a) that you understand the problems
and b) that you
> are prepared to handle them when they occur, and c) that
you have a need
> to use frames, then by all means use them.
>
> As far as I know, the most comprehensive discussions of
frames and their
> potential problems can be found on these two links -
>
>
http://apptools.com/rants/framesevil.php
>
http://www.tjkdesign.com/articles/frames/
>
>
> --
> Murray --- ICQ 71997575
> Adobe Community Expert
> (If you *MUST* email me, don't LAUGH when you do so!)
> ==================
>
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
>
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
> ==================
>
>
> "Jeff" <[email protected]> wrote in message
> news:[email protected]...
>> show us your framest code
>> and
>> your link code
>>
>> Jeff
>>
>> "julieaherne" <[email protected]>
wrote in message
>> news:[email protected]...
>>> Hello,
>>> I would like links in the 'menu' frame of my
site to open the new page
>>> in
>>> another frame, called 'content'. Although I have
entered the name of
>>> the frame
>>> ('content') in the target box in the link
properties, the page
>>> consistently
>>> opens in a new browser window. I am unable to
upload the site at this
>>> time but
>>> I was wondering if there are any common causes
for this?
>>> Thanks,
>>> Julie
>>>
>>
>>
> -
Getting a button to link to a frame
I'm really new at this, sorry! I've inherited a website made with dreamweaver, with this button code in it
<input name="BUTTON" type=BUTTON style="background-color:#2f555f;color:#FFFFFF;font-size:10pt;font-family:Courier New;" onclick="javascript:location.href='../../Processing/irix/irix_proc_home.htm';" onmouseover="this.style.backgroundColor='#4cabc3'" onmouseout="this.style.backgroundColor='#2f555f'" value="Irix Brain Imaging Processing Protocols" />
My boss has now asked me to make frames in the website. I can link standard links to the mainframe with target= _mainframe, no problem. But I want to make this button display from my left menu frame to my mainframe.I've tried replacing just about everything in the code with mainframe but still, you click it, leftframe every time. As I've inherited this code, I'm not even sure this is java, mind you, I'm learning this html stuff from scratch...
Thanks for any help you can give me!
AmyNope, that is not Java. Try to find a decent html and javascript tutorial.
-
Hello people.
I'm looking for a way to open a local link in a centered frame on the main page (index).
What I'm trying to archieve is what Fancybox does, but instead of showing a picture - I want it to show the content of a local webpage. Maybe even blur out the background.
I was wondering if there is an easy way of doing this without any additional plugins, and if not - if there's a way of doing this with Fancybox. I'm a novice at programming and I only have a very basic understanding of HTML and PHP - That's why I would rather do this in for example PHP instead of getting to know a scripting language like JavaScript - though I know I'll have to at some point. At the moment I'm just trying to visualize what I want the final layout to look like.You can use Fancybox with iframes, ajax or inline content.
See examples near the bottom of their page.
http://fancybox.net/
The plugin and core jQuery library do all the heavy lifting for you.
Nancy O. -
Linking to Movie Frames with URL Variables
Is there a way to link directly to a specific keyframe of a
SWF using code in the URL? We have build a Flash portfolio
slideshow for a number of artists and we would like to link to the
main page for each artist within the main movie. So the URL might
look something like this
http://mysite.com?artist=joebob.
As an example, we would want this URL to point to Joe Bob's
portfolio page instead of the home page for mysite.com. Joe Bob's
page would be on the 200th frame of the main movie, for
example.Linky
-
Link to a frame opens up in a new window
I'm making a website with two frames: the top one contains the menu and the bottom one shows the content. I read the description in the help page, that as target you should write the name of the frame you want the link to open up in. I did that but it opens up in a new window anyway. Why is this?
The name of the frameset is called "index" and the top frame is called "menyrad". The start page and the bottom frame are the same thing, it's called "start". Should these be two separate things instead? But then wouldn't the bottom frame be empty when one goes to the page for the first time? Anyway, I have made only one other page so far, it's called "hyr_personal". In the links that are on the top frame, I have written "start.html" or "hyr_personal.html" as the link and "start.html" as the target. This is all the code I have so far:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Jourbemanning</title>
</head>
<body background="moln.png">
<a href="start.html" accesskey="S" target="start.html">Start</a>
<a href="hyr_personal.html" accesskey="H" target="start.html">Hyr personal</a>
</body>
</html>
If there's anything else you need to know, just tell me. I haven't published the page yet. I saw that someone else had a thread about the same subject, but their code didn't look even remotely the same.Hi Zefyrinus,
from the point I understood correctly, that what I see is the relating to the appearance like described here:
http://help.adobe.com/en_US/dreamweaver/cs/using/WScbb6b82af5544594822510a94ae8d65-7d2da.h tml
In the Target menu in the Property inspector, select the frame or window in which the linked document should appear:
_blank opens the linked document in a new browser window, leaving the current window untouched.
_parent opens the linked document in the parent frameset of the frame the link appears in, replacing the entire frameset.
_self opens the link in the current frame, replacing the content in that frame.
_top opens the linked document in the current browser window, replacing all frames.
Frame names also appear in this menu. Select a named frame to open the linked document in that frame.
That means not a file is a target:
<a href="start.html" accesskey="S" target="start.html">Start</a>
<a href="hyr_personal.html" accesskey="H" target="start.html">Hyr personal</a>
but rather the appearance, what means for example:
<a href="start.html" accesskey="S" target="_blank">Start</a>
<a href="hyr_personal.html" accesskey="H" target="_blank">Hyr personal</a>
Hans-G. -
How to set the HOME link from two frame jsp page to no frame main page?
Hi all,
i have one main jsp page named as main.jsp.
From the main.jsp, i can click the button and link to the twoFrame.jsp.
This twoFrame.jsp have another two different jsp inside the frame called Aframe.jsp and Bframe.jsp.
i try to put HOME in the Aframe.jsp(one of the page inside twoFrame.jsp) but only the Aframe.jsp manage to link to main.jsp but the Bframe still there.
My question is: How to set the HOME link button from this twoFrame.jsp to the main.jsp? what i want is from twoFrame.jsp(two frame) to main.jsp(no frame).
rgds,
Bryan523No offense, but this is basic HTML. You shuold look into learning HTML before getting too deep into JSP. Try this: http://www.w3schools.com/html/default.asp
But as a more specific answer, you have to set a target for the link to the _parent of your frame:
<a href="main.jsp" target="_parent">Home</a> -
Button that links to later frame and also stops music from playing in background
I have some audio playing that I want to stop when a user
clicks on a
button that links to a later frame.
Does this look correct?
SoundMixer.stopAll();
Btn1.addEventListener(MouseEvent.CLICK, buttonClick1);
function buttonClick1(event:MouseEvent):void{
gotoAndStop(30);I'm sorry, I'm not sure what you mean by this. Could you
please show me
the syntax?
Thanks!!!!!!
kglad wrote:
> no.
>
> your stopAll() method should be applied within
buttonClick1 if you want that click to stop the sound(s). -
Link to specific frame from URL
I have an embedded flv.
I want to create links (html, xml, etc) to all me to jump to
specific frames of my embedded flv.
Anyone know how to do this? I'm very new to flash, so
specific examples would be very helpful.
Thanks,I have an embedded flv.
I want to create links (html, xml, etc) to all me to jump to
specific frames of my embedded flv.
Anyone know how to do this? I'm very new to flash, so
specific examples would be very helpful.
Thanks, -
Adding a link into a frame in jsp
Hello all,
Please see below code, which will give me a frame in a page and frame source will be previous page url.
CAN I ADD A LINK OR BUTTON AT LINE NO: 5
<script language="JavaScript">
var self= window.opener.location.href;
function fillFrame() {
parent.frame1.location.href = self;
// CAN I ADD A BUTTON AFTER THIS LINE NO: 5
</script>
<frameset rows="100%" onload="fillFrame();">
<frame src="" name="frame1" id="frame1" />
</frameset>
WHEN I AM WRITING
parent.fame1.document.writeln(" Text here ");
it shows only Text here in the page and it doesn't show the previous page.
Any help??????????????If you are a developer then you will be better off asking in the developer forums : https://devforums.apple.com/index.jspa
Maybe you are looking for
-
I would go to my textes and it would take about 30seconds and then crashes, i would close the phone go back and it fail to open again then my phone and the imessages would spaz out. Its really frustrating. I do hard resets and everything but nothing
-
What type of software should I buy to down load from my mac a video from my high def camcorder
-
How do i remove the red dotted border around links?
On several websites (Facebook, Twitter, Hootsuite, etc) any link is outlined by a red dotted border. I don't know if I inadvertently changed a setting but it never was like this before and I can't figure out how to disable the dotted border from show
-
Old Ipod library How to I add it to my new Ipod. How do i add any lirbray to my ipod
-
XP SP3 system. I have Gmail set to always use a secure connection & I've cleared the cache (but not saved passwords) ''was started over here -https://support.mozilla.com/en-US/questions/791872''