| |
| |
| |
|
Page: 1 2 3
Comments:
<0> I have a web site - on several of the pages i have menus <0> the menu is a separate frame than the page that called it <0> loaded it i mean <0> I use AJAX to update the content when something changes...but when it does, the .js code does not reexecute to reload the menu <0> how can i make .js code fire (client side) when the server side recognizes that something changed and the .innerHTML is updated ? <0> to reload the menu <1> you use ajax for what? <1> i don't get that part, you use frames as well. just funny .... <0> i have a website that, every 30 seconds goes out the the server (same page) and looks at its html contents. <0> if different than the current html contents, i update the innerhtml <0> it's a nice way to refresh the page contents without reloading the entire page <1> so, when you update the innerhtml , make a call to update the menu as well <0> but the menu is client side javascript like this: <0> <script src="/Members/coolmenus_frame.js" type="text/javascript" LANGUAGE=\"JavaScript\" ></script> <0> and ajax is server side <1> if it is needed, you know it is needed or not
<0> sorta <1> you so mix up <1> innerHTML is always client side <1> so when it update, it is running on client side <0> inner html is client side, yes <1> so yuo must know to when to update the menu as well <0> ok.. so to reload the menu, i have to call that script using EVAL or something....otherwise my menu dont work no more <0> on <body OnLoad.... i set a timer (callback) <0> that timer fires every 30 seconds <0> creates an XMLHttpRequest and loads the web page into memory <1> juding by those statement, i don't want to know anything about that menu at all <0> looks at the html of THAT page and compares it to the current page <0> if different, sets the document.body.innerHTML to the new page (in memory) <0> now i need to manually fire that js code that resides just eneath my <Body> tag <0> now, the code is running on the client side...and i use java script to update the innerHTML...... <0> but how do i manually fire the .js code ..... is there a function....EVAL is about as close as i can guess <0> if you want to see what i am talking about, goto http://www.myfantasyzone.com <0> click sign in <0> use "demo" and "demo" for username and p***word <0> it's a fantasy football site <1> if you know the function name, just call the function <1> no need for eval at all <0> but its not a function <0> its: <0> <script src="/Members/coolmenus_frame.js" type="text/javascript" LANGUAGE=\"JavaScript\" ></script> <1> just add a line in that js will call a funtion when it is loaded then <0> after i update the innerHTML, do I just paste "/Members/coolmenus_frame.js" on the next line <1> keep the script, just update the content of a div sound more logical <1> using ajax to update part of a page, butyou have a frame as well, not really making sense to me <0> cant - never know what will change - too much code to determine what will change <0> oh <0> gotcha <0> it's like this <0> when a user logs in, some of there information (which they must always see) resides in the top fram <0> frame <0> content in bottom frame <0> the top frame contains things like, how many messages are in their "inbox", there leageu/team names, etc <0> in the bottom frame, they'll see football stats, scores, schedules, injuries, etc.. <1> i know, but since you are using ajax anyway, your info will stay anyway if you update the other part of a page <0> the menu is in the top frame, but when you click on one of the items, it appears in the bottom frame <0> the only page i update is the one in the bottom frame <0> the top frame never changes <0> it just hold the menu and a few other global things <0> so, on each page (in the bottom frame) the code <0> <script src="/Members/coolmenus_frame.js" type="text/javascript" LANGUAGE=\"JavaScript\" ></script> <0> must be executed on load <0> so i put it under the body tag <0> it executes when i refresh the page manually and when it first loads <2> ht311, how do i update a splitpane container ? .. u know, when i click on a menu item :p <2> tried; splitpane.ref2 = myGrid; <0> it's a legit site... launching in 2 months <0> http://www.myfantasyzone.com <0> click "sign in" <0> use demo for username and p***word <0> if you see a message pop up, just click in the white area..... (advertisements) <1> h3: .pane1 and .pane2 <0> or log in with "Demo user #2" p***word: "demo" <0> no ads that way
<2> cool <1> Armorqq: i said it before, you can add a line in that menu.js to call some other funtion when the file is loaded <1> so you know some it loaded <2> ht311, the gris does not apprear in the pane .. <2> grid.. <3> http://trailers.apple.com/trailers/independent/illusion/trailer/ <- this will probably be the worse movie ever made <3> well, not countign the new Keanu Reeves movie. <3> counting* <4> which one? the animated one? <3> ya <1> h3: you should create it in advance and p*** it into the ref1 or ref2 <1> usually, i use div for those pane and manage the content of the pane myself <2> with innerHTML ? <1> not really, i don't change it after. not sure what you want to do <2> i use the splitpane to separate a menu from a workspace <1> you should have a look at the outlook example <2> when you click a menu item it should load components.. like a grid or a form <2> yeah, i took it has example, but i tough the viewbar where more appropriate <2> it's just a list menu <1> i perpare all of them in advance , in each div, and inside a container, and give the container to splitpane, then i manage which one to show and which one to hide <1> if you don;t wnat to manage, you can use a notebook component <2> ok <1> http://vix.myvnc.com:8088/dropbox/untitled.PNG <1> this is with a pagecontrol on the other side <2> thx <2> ht311, you see something wrong in that ? <2> menu.groups[0].add({text:"Tout",fn:"alert('testing')"}); <1> groups? <3> my new server is up and running ^-^ <1> read the menu test example <2> it's a viewbar.. <3> hehe, I wish I had a pr0n collection :( <3> atleast now when I'm single ^-^ <3> shouldn't be hard to find a new gf/ff in a uni.-townish. <1> you need to factor in your age :D <1> 60 years old man attent uni. may know find anyone <1> hehhe <1> h3: guess you are asking the fn part? not sure, never used viewbar, but seem it should work <5> self.location='search.php?cat=' + val ; how i can put the variable val to a php like $test=$val; ? <3> hehe, I'm seeing one girl now, she's smoking hot, and she speaks funnie <3> FYI. :P <1> hahahaa,my mind read "she speaks funny" <6> fn is not supported by viewbar <3> people from the southern tip of sweden, have a queer dialect <6> use oncollapse or onexpand <1> the code said otherwise <1> if(n.fn){ <1> if(typeof n.fn == "function")n.fn(n); <1> else eval(n.fn); <1> } <1> ops <7>Trout</marquee> <6> sorry, thought we were talking about groups <5> self.location='search.php?cat=' + val ; how i can put the variable val to a php like $test=$val; ? <5> strange why when I chosse a country in this page http://www.clubreseau.com/staging/search.php the country disapeear ? If I put out the script to save all value in a cookie it work <8> my regexp is matching more than I want it to. I ***umed abc.*xyz would only match up to xyz in my string, but it appears to be matching everything after as well. any suggestions would be appreciated. (: <3> pandaro: change .* to .*? <5> yeah <9> psykotapette, que veux tu ? <5> holy connait tu le javascript <9> non <5> jai un prob javascript <8> hmm. sorry - did my question make it into the channel? <9> <3> pandaro: change .* to .*? <9> psykotapette, pourquoi t'appelles tu psykotapette ? <8> thanks fatbrain, holy_wood - will try that. <9> np :) <8> perfect. it seems like this is specific to javascript, or am i mista<10> hello <10> Is it possible "onfocus" to get the object where the focus was befor it got to the current object? <11> Hi guys <10> I have sevaral rows of info on my page. each one of them have a checkbox (for further javascript operation on selected ones). How would you recommend naming them? I would prefer if it was an array. <12> The checkboxes?
Return to
#javascript or Go to some related
logs:
#apache #MissKitten #london perverts.nl #mirc dfsa ctc #AllNiteCafe #linux sormok #AllNiteCafe
|
|