I'cant load SPRY content into a Frame

HOw can i load spry content into a frame.. i wrote a code..
and in the preview version works.. but when i upload to server..
it's not working.. this my code.. thk
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- Copyright (c) 2006. Adobe Systems Incorporated. All
rights reserved. -->
<html xmlns="
http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
<title>Collapsible Panel Group Sample</title>
<script language="JavaScript" type="text/javascript"
src="widgets/collapsiblepanel/SpryCollapsiblePanel.js"></script>
<script language="JavaScript" type="text/javascript">
function load_content ()
if (parent.document.getElementById('main_div')) {
parent.document.getElementById('main_div').innerHTML=document.getElementById('inner_frame ').innerHTML;
if (!parent.document.getElementById('main_div')) {
window.location=('index.html') ;
</script>
<link
href="widgets/collapsiblepanel/SpryCollapsiblePanel.css"
rel="stylesheet" type="text/css" />
<link href="css/samples.css" rel="stylesheet"
type="text/css" />
<style type="text/css">
#cp1 .CollapsiblePanelContent {
overflow: scroll;
height: 300px;
.CollapsiblePanel {
width: 300px;
.CollapsiblePanelTab {
font-size: 1em;
</style>
</head>
<body onload="load_content()">
<h3>Collapsible Panel Group Sample</h3>
<p>By default the panels in a collapsible panel group
are open.</p>
<div id="inner_frame">
<div id="CollapsiblePanelGroup1"
class="CollapsiblePanelGroup">
<div class="CollapsiblePanel">
<div class="CollapsiblePanelTab" tabindex="0">Panel
23</div>
<div class="CollapsiblePanelContent">
<p>Test 1.</p>
</div>
</div>
<div class="CollapsiblePanel">
<div class="CollapsiblePanelTab" tabindex="0">Panel
2</div>
<div class="CollapsiblePanelContent">
<p>test 2</p>
</div>
</div>
<div class="CollapsiblePanel">
<div class="CollapsiblePanelTab" tabindex="0">Panel
3</div>
<div class="CollapsiblePanelContent">
<p>test 3</p>
</div>
</div>
</div>
</div>
<script language="JavaScript" type="text/javascript">
var cpg1 = new
Spry.Widget.CollapsiblePanelGroup("CollapsiblePanelGroup1", {
contentIsOpen: false });
</script>
</body>
</html>

Im not sure if i'm doing it right, but it wont work for me
var scriptEle= document.createElement("script");
scriptEle.text = s;
ele.appendChild(scriptEle);
is this the exact code witch i have to replace the old one
with?
i also added the
Spry.Data.initRegions(ele);
on the end of the Spry.Utils.setInnerHTML function
i havent included the spry related javascripts in the main
page could tha be a problem?
actually i've tried to but it did'nt help
really thanx tha you willing to help

Similar Messages

  • Load XML content into HTML enabled TextField

    I'm trying to figure out how to use html such as <br />
    loaded from an XML element into a TextField.. if I use something
    like
    <desc>my description<br />line 2</desc> I
    get 3 nodes instead of one when loading the XML file. If I use
    something like <desc>my description&lt;br /&gt;line
    2</desc> then I get <br /> in the actual text.
    Can anyone clue me in as to how to store HTML in an XML
    element so I can load the content into a Dynamic TextField with
    HTML enabled?
    Thanks much!

    use the latter in your xml and use the htmlText property of
    your html-enabled textfield to display your text.

  • Since the weekend my Firefox 10.0.2 does not load the content of the frames when I connet to Facebook

    I can log in and out of Facebook. The heading at the top of the home page loads, and so does the thin blue frame in which the content should be displayed. The page however stays blank. The same happens if I connect to a friend's profile. I also cannot search of display my profile wall of whatever.
    My very old version of Microsoft Internet Explorer works perfectly, although it displays a warning about being outdated.
    Google's Crome browser have the same problem as Firefox i.e. a blank screen.
    I tried deleting cookies and cach. I tried reïnstalling Firefox. I even removed it completely, with al personal settings and stuff (and thus lost tweaks which I have been using for years) I the reïnstalled it... to no avail. I have tried using an old version (9.0.1) but it also just displays a blank screen.
    If I DISable Javascript in Firefox my Facebook homepage loads, but the none of the buttons (eg "see more" , "display al nn comment" work. "See more" does not do anything and "disply all nn comments" displays a blank page.

    I have found a solution to the problem on a Google Chrome forum where people were discussing the same problem in that browser. If you connect to
    https://www.facebook.com (NOTE THE "S" which indicates a secure connection) Facebook wil display correctly.
    The only problem is that you have to keep pasting the "https" in front of every link you follow. To make it permanent do the following. I paste from the site
    (http://www.google.com/support/forum/p/Chrome/thread?tid=1ce2eceab414b310&hl=en)
    SammieKay08
    Level 1
    8/20/11
    Problem solved:
    1. Login to your Facebook account in your browser.
    2. Click on the Account on your top-right and select Account Settings from the drop down list.
    3. Click on the Change link in front of the Account Security.
    4. Put a checkmark in the checkbox labeled Browser Facebook on a secure connection (https).
    5. Click on the blue Save button to save the settings.
    Voila! Permanent https (secure browsing) on facebook and no more having to type in the "s" every time. :)
    8 of 14 people found this answer helpful. Did you?

  • Promlem with loading QT content in Safari into a div via innerHTML

    Hello,
    I have created a website where I'm loading QT content into a div via Javascript by using InnerHTML. I'm generating the Object/embed with javascript. Take a look at the following javascript function:
    //This function generates object/embed tags on the page
    //each time a movie thumbnail is clicked
    function showMovie(folder, previewUrl, movieUrl)
    var content = new getObj('content');
    var movieObj = new getObj('contentMovie');
    if(BrowserDetect.browser == 'Safari')
    //I added this bit becaus Safari kept on playing the previous movie
    movieObj.obj.Stop();
    content.obj.innerHTML = '';
    var urlStart = "[(base_url)]" + folder + "/";
    var qtUrl = movieUrl.split('../')[1];
    qtUrl = urlStart + qtUrl;
    var myQTObject = new QTObject(previewUrl.split('.')[0] + ".gif", "contentMovie", "489", "280");
    myQTObject.altTxt = "Upgrade your Quicktime Player!";
    myQTObject.addParam("name", "contentMovie");
    myQTObject.addParam("href", movieUrl);
    myQTObject.addParam("controller", "true");
    myQTObject.addParam("scale", "tofit");
    myQTObject.addParam("target", "myself");
    myQTObject.addParam("autoplay", "true");
    myQTObject.addParam("saveembedtags", "true");
    myQTObject.addParam("enablejavasript", "true");
    content.obj.innerHTML = myQTObject.getHTML();
    As you can see I'm specifically checking to see if the browser is Safari, then I'm stopping the movie via javascript. It seems that Safari keeps all the movies in memory and somhow loads them on top of each other instead of disposing of them when the innerHTML is set to an empty string... this took care of one problem which was preventing Safari from playing multiple movies at once(somehow stacking on top of each other). However, the fastStart movies keep loading in the background so you could argue that Safari is leaking memory and loading movies in the background that should not be there.
    Does anyone have a clue on how to fix this? Wouldn't you define this as a bug? I took a look at the QT javascript API and it seems to me that there is no command that tells the movie to stop loading or howto dispose of it. Maybe I can swap the movie URL via javascript if the browser is Safari, but I'd like to know if there is another way since I'm using a poster movie and I imagine it will complicate things. Anyway, you can test for your self on www.koggull.com/index.php, if you don't understand the problem. I suggest that you keep Activity Monitor open, then you can see how Safari eats up memory when browsing my website. All help would be greatly appreciated.
    MacBookPro Core2 duo 2.33 Ghz   Mac OS X (10.4.8)  

    FYI I posted a similar question in one of the Quicktime forums. I haven't gotten any answers: http://discussions.apple.com/thread.jspa?threadID=764296&tstart=0

  • Loading File name and file contents into two separate tables using Sqlloadr

    Hi All,
    I have situtation like to load File contents into One table and File name into one table . File comes with .txt extension
    Example :
    File name : product_09_abc.txt
    File contents :
    Productcode
    ABC
    CDE
    EFT
    Can you please help me out this how can we acheive this using SQLLOADER.

    SQL*Loader will not pass through the filename for you to be able to insert into a table.
    You will need to have a controlling o/s script that picks up the file name, calls sql*loader and then also call's an SQL script (using sql*plus?) to insert the filename into a.n.other table.

  • Simulate frames by loading web page content into DIV

    Hi, does anyone know if there is a way to simulate frames
    using CSS. Essentially, I want to load the content from another web
    page into a specific DIV. The content is from another web site, we
    have permission to use it, but I want it to appear within a page on
    my site that still has my navigation and header DIVs. So I want to
    load a new page into a content DIV, as if it were a frame. Can this
    be done? Thanks, JD

    By the way, IFrames have the same problems as frames....
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "bregent" <[email protected]> wrote in
    message
    news:e1umgn$227$[email protected]..
    > >The content is from another web site
    >
    > If you are well versed in server side scripting, you
    could do this without
    > a
    > (i)frame. Otherwise, you'll have to use some sort of
    frame. Of, find out
    > if the
    > other site can provide you with an xml feed of some
    sort.
    >

  • Spry Tabbed panels + Progressive Enhancement and Dynamic Loading of Content With Spry

    Is there any way to combine tabbed panels together with "Progressive Enhancement and Dynamic Loading of Content With Spry"?
    Visit: http://labs.adobe.com/technologies/spry/articles/best_practices/progressive_enhancement.ht ml#updatecontent
    And click on the "Using Spry.Utils.updateContent()"
    The 3rd example shows how to use a fade transition whenever the content changes.
    I already have tabbed panels. My menu contains buttons (on tabs) and my Content div contains the panels.
    Tabs code;
    <ul class="TabbedPanelsTabGroup">
              <li class="TabbedPanelsTab">
                   <table class="Button"  >
                        <tr>
                        <td style="padding-right:0px" title ="Home">
                        <a href="javascript:TabbedPanels1.showPanel(1);" title="Home" style="background-image:url(/Buttons/Home.png);width:172px;height:75px;display:block;"><br/></a>
                        </td>
                        </tr>
                   </table>
              </li>
    etc
    etc
    etc
    and the panel code:
    <div class="TabbedPanelsContent" id="Home">
         CONTENT
    </div>
    I hoped i can use the example code from the link into my tabbed panels.
    I thought this code:
    onclick="FadeAndUpdateContent('event', 'data/AquoThonFrag.html'); return false;"
    could be added to the tab code like this:
    <a href="javascript:TabbedPanels1.showPanel(1);" onclick="FadeAndUpdateContent('event', 'data/AquoThonFrag.html'); return false;" title="Home" style="background-image:url(/Buttons/Home.png);width:172px;height:75px;display:block;"><br/></a>
    But the content doesnt fade...
    I know i need to change the header etc.
    The following is from the link:
    <!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" xmlns:spry="http://ns.adobe.com/spry">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Aquo Events</title>
    <script src="../../../includes/SpryEffects.js" type="text/javascript"></script>
    <script src="../../../includes/SpryData.js" type="text/javascript"></script>
    <script type="text/javascript">
    <!--
    function FadeAndUpdateContent(ele, url)
    try {
         Spry.Effect.DoFade(ele,{ duration: 500, from: 100, to: 0, finish: function() {
              Spry.Utils.updateContent(ele, url, function() {
                        Spry.Effect.DoFade(ele,{ duration: 500, from: 0, to: 100 });
    }catch(e){ alert(e); }
    -->
    </script>
    <style type="text/css">
    /* IE HACK to prevent bad rendering when fading. */
    #event { background-color: white; }
    </style>
    </head>
    So i changed my header etc, put the SpryEffects.js and SpryData.js into position and nothing changed...
    Is there a way to keep my tabbed panel (or change as less as possible) and let
    A. The fade work
    B. The loading work.
    The problem now is that it loads all pages instead of only the home. Therefore i wanted this Progressive Enhancement.
    And the fading part is just because its nice...

    It doesnt show in the post but off course i changed this link;
    "data/AquoThonFrag.html"
    into;
    "javascript:TabbedPanels1.showPanel(1);"
    I must say i dont know if this even works...

  • How to create, place, format and paste the clipboard contents into a text frame

    I am new to scripting and need help. I have an existing Indesign document. I need to be able to create a text frame on my current page, the width of my margins with the top of the text frame at the top margin and 1" in height, then format it to be 1-column, and then paste the clipboard contents into it and tag the text with a particular paragraph style. I am using Indesign CS4 on a mac, if that makes any difference. Thanks for any help.

    May this will help you. It will create an anchored object with a text what you desired, with object style. You should create an object style before with the x and y co ordinates. You can choose either para style or character style.
    var the_document = app.documents.item(0);
    // Create a list of paragraph styles
    var list_of_paragraph_styles = the_document.paragraphStyles.everyItem().name;
    // Create a list of character styles
    var list_of_character_styles = the_document.characterStyles.everyItem().name;
    // Create a list of object styles
    var list_of_object_styles = the_document.objectStyles.everyItem().name;
    // Make dialog box for selecting the styles
    var the_dialog = app.dialogs.add({name:"Create anchored text frames"});
    with(the_dialog.dialogColumns.add()){
    with(dialogRows.add()){
    staticTexts.add({staticLabel:"Make the anchored frames from ..."});
    with(dialogRows.add()){
    staticTexts.add({staticLabel:"This character style:"});
    var find_cstyle = dropdowns.add({stringList:list_of_character_styles, selectedIndex:0});
    with(dialogRows.add()){
    staticTexts.add({staticLabel:"Or this paragraph style:"});
    var find_pstyle = dropdowns.add({stringList:list_of_paragraph_styles, selectedIndex:0});
    with(dialogRows.add()){
    staticTexts.add({staticLabel:"Leave one dropdown unchanged!"});
    dialogRows.add();
    with(dialogRows.add()){
    staticTexts.add({staticLabel:"Delete matches?"});
    var delete_refs = dropdowns.add({stringList:["Yes","No"], selectedIndex:0});
    dialogRows.add();
    with(dialogRows.add()){
    staticTexts.add({staticLabel:"Anchored text frame settings:"});
    with(dialogRows.add()){
    staticTexts.add({staticLabel:"Object style:"});
    var anchor_style = dropdowns.add({stringList:list_of_object_styles, selectedIndex:0});
    with(dialogRows.add()){
    staticTexts.add({staticLabel:"Frame width:"});
    var anchor_width = measurementEditboxes.add({editUnits:MeasurementUnits.MILLIMETERS, editValue:72});
    with(dialogRows.add()){
    staticTexts.add({staticLabel:"Frame height:"});
    var anchor_height = measurementEditboxes.add({editUnits:MeasurementUnits.MILLIMETERS, editValue:72});
    the_dialog.show();
    // Define the selected styles
    var real_find_cstyle = the_document.characterStyles.item(find_cstyle.selectedIndex);
    var real_find_pstyle = the_document.paragraphStyles.item(find_pstyle.selectedIndex);
    var real_anchor_style = the_document.objectStyles.item(anchor_style.selectedIndex);
    // Check if a style is selected
    if(find_cstyle.selectedIndex != 0 || find_pstyle.selectedIndex != 0) {
    // Define whether to search for character styles or paragraph styles
    app.findChangeGrepOptions.includeFootnotes = false;
    app.findChangeGrepOptions.includeHiddenLayers = false;
    app.findChangeGrepOptions.includeLockedLayersForFind = false;
    app.findChangeGrepOptions.includeLockedStoriesForFind = false;
    app.findChangeGrepOptions.includeMasterPages = false;
    if(find_cstyle.selectedIndex != 0) {
    app.findGrepPreferences = NothingEnum.nothing;
    app.findGrepPreferences.appliedCharacterStyle = real_find_cstyle;
    } else {
    app.findGrepPreferences = NothingEnum.nothing;
    app.findGrepPreferences.appliedParagraphStyle = real_find_pstyle;
    app.findGrepPreferences.findWhat = "^";
    // Search the document
    var found_items = the_document.findGrep();
    myCounter = found_items.length-1;
    do {
    // Select and copy the found text
    var current_item = found_items[myCounter];
    if(find_pstyle.selectedIndex != 0) {
    var found_text = current_item.paragraphs.firstItem();
    var insertion_character = (found_text.characters.lastItem().index) + 1;
    var check_insertion_character = insertion_character + 1;
    var alt_insertion_character = (found_text.characters.firstItem().index) - 1;
    var the_story = found_text.parentStory;
    app.selection = found_text;
    if(delete_refs.selectedIndex == 0) {
    app.cut();
    } else {
    app.copy();
    } else {
    var found_text = current_item;
    var insertion_character = (found_text.characters.lastItem().index) + 2;
    var check_insertion_character = insertion_character;
    var alt_insertion_character = (found_text.characters.firstItem().index) - 1;
    var the_story = found_text.parentStory;
    app.selection = found_text;
    if(delete_refs.selectedIndex == 0) {
    app.cut();
    } else {
    app.copy();
    // Make text frame from selection
    try {
    app.selection = the_story.insertionPoints[check_insertion_character];
    app.selection = the_story.insertionPoints[insertion_character];
    } catch(err) {
    app.selection = the_story.insertionPoints[alt_insertion_character];
    var the_anchored_frame = app.selection[0].textFrames.add({geometricBounds:["0","0",anchor_height.editContents,anch or_width.editContents],anchoredObjectSettings:{anchoredPosition: AnchorPosition.ANCHORED}});
    app.selection = the_anchored_frame.insertionPoints[0];
    app.paste();
    // Apply the object style now to "force apply" paragraph style set in the object style
    if(anchor_style.selectedIndex != 0) {
    the_anchored_frame.appliedObjectStyle = real_anchor_style;
    myCounter--;
    } while (myCounter >= 0);
    } else {
    alert("No styles selected!");

  • Web Photo Gallery - load into a frame?

    Hi,
    I have created a Web Photo Gallery using Photoshop CS2 and its URL works fine on its own.
    When I try and load it into a frame, none of the links or the the slide show feature work anymore.
    Does this meen that a Gallery cannot be loaded into a frame? Does it have to be standalone?
    Thanks if you can help! :)
    Steven

    The best that I've been able to achieve is to load Twitter widgets into DPS's In-App browser. Directing a plain Twitter feed into a web overlay on an InDesign page makes it look pants.

  • Loading new pages into frames

    Hey Murray
    or anyone else : )
    This might seem like a redundant question but it would seem
    there is some confusion surrounding it.
    I say this because I can't seem to get an answer.
    I have a site that uses a page with a frame and a swf control
    ( just a swf with buttons that load the new pages into the frame.
    click on photos and it loads the photos.html page into that frame
    and so on. )
    I won't work in IE just displays errors. Is there a work
    around?
    Is there a better way to do this that would just entail
    building a new nav control?
    Any help would be great!!! please bear in mind it must work
    in IE, FF & SAFARI
    thanks in advance Von

    VonPeters posted in macromedia.dreamweaver
    > Your right Mark I'm not going to try and post from my
    iphone
    > anymore seems to easy to accidently post more than once
    and to
    > miss information. I didn't see that Murray had asked for
    a link.
    I suspect that is caused by the Web forum, not the iPhone.
    The vast
    majority of double posts come from Web users rather than
    newsgroup
    users.
    > That being said I'm Sorry for any confusion or
    frustration caused
    > by the above
    > post/s. My Bad and yes that clarified things. I had
    > misinterpreted his response of ewww as that I should go
    about it
    > another way.
    Judging from his previous posts on the subject, I don't think
    you
    misinterpreted him at all. He has often posted a
    comprehensive article
    on the disadvantages of using Flash navigation and many
    others
    discourage it as well.
    And you would be hard pressed to find anybody anywhere
    encouraging
    the use of frames in any but the most limited cases these
    days.
    I can see where you might want to use a frame here, but since
    it seems
    to be an all Flash site, why not use Flash's built-in
    features to load
    other movies. I think that would be loadMovie().
    > Sure any additional browsers would be great to have the
    pages
    > working on as well. Though the main ones
    > which I mentioned above are all that are really needed
    and are
    > the only ones I will be testing on.
    OK. I revise that with my 3rd paragraph below.
    > The error that is being displayed is simply "error on
    page" in
    > reference to
    > clicking on any of the links in the flash nav bar.
    I wasn't able to get that far. In IE 7, I chose No when it
    asked me to
    upgrade the Flash plugin to version 10. I am left with a big
    black
    window containing the [Get Flash Player] icon and
    non-functioning links
    at the bottom.
    There are a large number of people who surf the Web from
    their office -
    or office-supplied computers. They often do not have the
    access to
    install software.
    Since this appears to be a 100% Flash site, you are not
    really
    restricting use to the mentioned browsers, but restricting
    use to
    browsers with Flash Player 10 capability.
    And they must scroll to the right if their browser viewport
    is less
    than 1024.
    > It doesn't give
    > me anymore info than that. No error type hence no way
    that I know
    > of to hunt down the fix.
    > Which is why I am here.
    > Here's a link to the beta version of the site. It's not
    finished
    > yet and there are still things to fix, add, adjust etc.
    > But you'll get the idea.
    >
    >
    http://www.vonpeters.com/build/
    Were you able to see Alan's first reply? He may have guessed
    what the
    problem is.
    If that doesn't do it, I suspect you might have better luck
    in one
    of the Flash forums. There may be more people in there
    accustomed to
    creating Flash-only sites.
    Sorry I couldn't be of more assistance, but FWIW, one or more
    of the
    "pages" seems to link to a broken "Untitled_Document.flv"
    file.
    Mark A. Boyd
    Keep-On-Learnin' :)

  • Hi i've just signed up for lightroom and when i go into the develop screen i get a blue screen with a cross through it and it says cant load picture. any idea how to get around this?

    hi i've just signed up for lightroom and when i go into the develop screen i get a blue screen with a cross through it and it says cant load picture. any idea how to get around this?

    I'm having same problem in develop module which is laggy as hell compared to LR5.8
    Library module is fine but develop module is slow as hell....5 seconds to make ANY adjustment.

  • Twitter - load into a frame

    Hello again,
    I have been searching the forums looking for something about this.  I know that Twitter changed something on their end to make it difficult to load a twitter feed into DPS.
    Has anyone found a fix for this?  I know that you have to use a web content overlay... but for some reason I just can't get it to appear properly.
    help please!
    thank you.

    The best that I've been able to achieve is to load Twitter widgets into DPS's In-App browser. Directing a plain Twitter feed into a web overlay on an InDesign page makes it look pants.

  • Loading the Contents of a file into a JTable

    I am trying to load the content of a delimited (tab, comma, etc), into a JTable. The code is very simple and works for the most part. Here is some of it:
                   List tableRows = new ArrayList();
                   String lineItem = "";
                   InputStream in = new FileInputStream(fName);
                   InputStreamReader isr = new InputStreamReader(in);               
              BufferedReader br = new BufferedReader(isr);
         while((lineItem = br.readLine()) != null)
                        if(x == MAX)
                             break;
                        java.util.List rowData = new ArrayList();
                        StringTokenizer st = new StringTokenizer(lineItem, "\t");
                        while(st.hasMoreElements())
                             rowData.add(st.nextToken());
                        tableRows.add(rowData);     
                        x++;
    Basically, tableRows, ends up to be a List of Lists which I later use to populate the Object[][] for the JTable rows. This works perfect!
    My problem has to do with the tokenizer. In some situations, values in a line that is read contains "". For example an line read (quotes are showed only to distinquish values in the line):
    "item1", "item2", " ", "item4", " ", "item6", "item7"
    The tokenizer does not capture the " ". So instead of 7 tokens, it only sees 5.
    My question is, can someone tell me a better approach for tokenizing the string so that it captures everything?
    Thanks in advance,
    Augustine

    I am trying to load the content of a delimited (tab, comma, etc), into a JTable. The code is very simple and works for the most part. Here is some of it:
                   List tableRows = new ArrayList();
                   String lineItem = "";
                   InputStream in = new FileInputStream(fName);
                   InputStreamReader isr = new InputStreamReader(in);               
              BufferedReader br = new BufferedReader(isr);
         while((lineItem = br.readLine()) != null)
                        if(x == MAX)
                             break;
                        java.util.List rowData = new ArrayList();
                        StringTokenizer st = new StringTokenizer(lineItem, "\t");
                        while(st.hasMoreElements())
                             rowData.add(st.nextToken());
                        tableRows.add(rowData);     
                        x++;
    Basically, tableRows, ends up to be a List of Lists which I later use to populate the Object[][] for the JTable rows. This works perfect!
    My problem has to do with the tokenizer. In some situations, values in a line that is read contains "". For example an line read (quotes are showed only to distinquish values in the line):
    "item1", "item2", " ", "item4", " ", "item6", "item7"
    The tokenizer does not capture the " ". So instead of 7 tokens, it only sees 5.
    My question is, can someone tell me a better approach for tokenizing the string so that it captures everything?
    Thanks in advance,
    Augustine

  • Cant load photo black ink cartridge into HP 5520 printer

    Hi there,
    Cant load photo black ink cartridge into HP 5520 printer.

    Hi,
    The Photo ink cartridge is not intended for the Photosmart 5520, the printer uses Black, Cyan, Magenta and Yellow ink cartridges as listed below as an example (The same applies for the US with the 564 ink cartridges):
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c03340400&tmp_task=prodinfoCategory&cc=uk&dlc=en...
    As you may find below as an example, the Photo Ink Cartridge only intended for printers which use 5 ink cartridges:
    ONLY for 5-cartridge printers which use Black, Photo, Cyan, Magenta, and Yellow inks
    Does NOT replace Black ink cartridge
    http://store.hp.com/webapp/wcs/stores/servlet/PDPStdView?catalogId=10051&productId=502407&storeId=10...
    Please let me know if I may misunderstood your intention,
    Shlomi
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

  • .swf being able to load contents into it issue.  Please help?

    Hi there,
    I have strange situation regarding flash that I can't figure out.  I have a flash .swf file that is intended to load .flv video files into them at the local root level.
    I have been able to do this on my own server, but the .swf and the .flv videos are now located on the media streaming server, and the .swf is able to show up on it's own when embedded onto my page (on MY server), but it's not being able to load the video files.  I am perplexed because the videos are structured in the same EXACT way that it was being done on my server, but they will not load onto my .swf as they were doing when they were on my server.
    For example, one of the videos is loaded by using this convention in my actionscript:
    var file = "videos/Bob_Peebler.flv";
    So, on my media hosting service, I've loaded the .swf file on the local root, and the videos are placed in the same exact directory structure as they were done on my server.  In the example above, the  "bob_peebler.flv" is located inside the videos folder, and the videos folder is on the same level as the .swf
    In my flash file, I've thought that the var needs to point to the actual URL of the flash file, so I've then typed out the URL of the flash video, but I still can't seem to get it to work.
    var file = "http://iongeo.fileburst.com/videos/Bob_Peebler.flv";
    Here is where the .swf can be located to get a better sense of what I am trying to accomplish.
    http://iongeo.fileburst.com/ChannelGuide_Features.swf
    Please let me know if I can clarify on something better.
    I would really appreciate any kind of assistance that could be provided.
    Thank you

    Hello
    On my flash, I already have those parameters in place.
    I don't think there would be any security issues however, since I have used a player .swf which loads from the media site and plays the videos without a problem.
    http://www.iongeo.com/channelguide_test_dev/
    click on the four images at the bottom of the screen to see how it works.
    Now, I am pretty much doing the same thing, but this time embedding the other swf to load the videos.  As I mentioned, I was able to do this when everything was on our server, but now there is an issue for some reason when I try to load the .flv into the .swf from the other media server.

Maybe you are looking for

  • Itunes won't recognize any of my music folders! Help!?

    When I go to "File -> Add Folder To Library" And I go to my music folder, it only shows the "iTunes" folder and none of my other folders what so ever. This is ******* me off. Can anyone help? In the past, I've been able to go to files, add folder to

  • Include actionscript at run time

    I know I can include actionscript from a file using #include "myScript.as", for example. But this happens at publish time, so if I make a change to myScript.as, I still need to re-publish the flash file to get the changes to take effect. Is there a w

  • Can I select the language when installing iLife 11?

    I have an iLife 11 installation DVD bought in the U.S. Can I select the language in which iLife 11 should be installed in on my Mac?

  • Mail marks mail as read before I have viewed them

    I'm using Mail for my gmail account (IMAP). When I receive a new email it is automatically set as 'read' and do not get a new message counter on the icon in the dock. This was not a problem when using POP (but IMAP works better for me so I'm keeping

  • Brushes in Photoshop CS6 stop working, what can be done?

    Seems every day I am resetting my brushes in PS CS6 by shutting down the program and restarting it while holding the ctrl+alt+shift keys. I work at a school so we are networked and I have a thoery that it may be a user profile setting for when the us