Search Results

Search found 26956 results on 1079 pages for 'javascript arrays'.

Page 154/1079 | < Previous Page | 150 151 152 153 154 155 156 157 158 159 160 161  | Next Page >

  • "return false" is ignored in certain browsers for link added dynamically to the DOM with JavaScript

    - by AlexV
    I dynamically add an <a> (link) tag to the DOM with: var link = document.createElement('a'); link.href = 'http://www.google.com/'; link.onclick = function () { window.open(this.href); return false; }; link.appendChild(document.createTextNode('Google')); //someDomNode.appendChild(link); I want the link to open in a new window (I know it's bad, but it's required) and I don't want to use the target attribute. My code works well in IE and Firefox, but the return false don't work in Safari, Chrome and Opera. By don't work I mean the link is followed after the new window is opened.

    Read the article

  • Javascript replace last occurence of text in a string

    - by Ruth
    Hi all see my code snippet below: var list = ['one', 'two', 'three', 'four']; var str = 'one two, one three, one four, one]; for ( var i = 0; i < list.length; i++) { if (str.endsWith(list[i]) { str = str.replace(list[i], 'finsih') } } I want to replace the last occurence of the word one with the word finish in the string, what I have will not work because the replace method will only replace the first occurence of it. Does anyone know how I can amend that snippet so that it only replaces the last instance of 'one' Thank you Ruth

    Read the article

  • Javascript Error with DataTable jQuery plugin

    - by stevoyoung
    I am getting a JS error and what to know what it means and how to solve it. (JS noob here) Error: "tId is not defined" Line of JS with error: "if (s[i].sInstance = tId) { " More Information I am using the Data Table (http://datatables.net) jQuery plugin. I have a two tables with a class of "dataTable" loaded on a page (inside of jQuery UI tabs). The tables render as expected but I get the error above in Firebug. Attached is my Data Table config file... $(document).ready(function() { //Take from: http://datatables.net/forums/comments.php?DiscussionID=1507 // before creating a table, make sure it is not already created. // And if it is, then remove old version before new one is created var currTable = $(".dataTable"); if (currTable) { // contains the dataTables master records var s = $(document).dataTableSettings; if (s != 'undefined') { var len = s.length; for (var i=0; i < len; i++) { // if already exists, remove from the array if (s[i].sInstance = tId) { s.splice(i,1); } } } } oTable = $('.dataTable').dataTable({ "bJQueryUI": true, "sPaginationType": "full_numbers", "bFilter": false }); }); What does the error mean and how do I resolve it?

    Read the article

  • javascript regex validation

    - by Arun
    Is there any way to find which input character fails the regex pattern. For ex: consider [A-Za-z\s.&] is only allowable but the user enter like "test/string" where '/' invalidates input. How to find who fails regex (our case '/')

    Read the article

  • how to decode encoded javascript codes ?

    - by Ronnie Chester Lynwood
    hello. i got some code like this var xKsgbD = unescape('{var xWCknA %3d %27%2576a%2572%2520z%2562%2531%2538%2530%2537%2537d%2565%2565%2530%253Dz%2534%2564%25389%25322%25308%2563%2539%253Dz%2539%2539%25316%2537%25328%2565c%2561%253dz%2563%2562%2539%2535%25336%25634%2565%2536%253d%257A%2532%25656%2533b%25625%25620%2539%253d%257a5%2564d%25331%2531b%2561%2533c%253d%257a%2536e%25619%2539%25345%25630%2534%253D%2528%2530x%25380%2561%252b2%2531%2536%2535%252D0%25781%2530%2537f%2529%252c%257A%2537%2539%25641%2562%2538%2563%25624%2539%253D%2521%2570o%256C%256c%2569%2564%257C%257c%2521r%2561%2574%2565i%2564%253F%2528%2530x%2565%2536%252b%25378%25394%252d0%25781%2566%2562%2563%2529%253a%2528%2530x%2539c%2535%252B%2532%2533%2538%2534%252D%2530x%2531%25331%2534%2529%252Cz%2531%25300%25618%25393%2532d%2537%253d%2553t%2572%2569%256e%2567%252e%2566%2572o%256d%2543%2568%2561%2572%2543o%2564%2565%2528%2528%2530%25781%2534%2535+%25379%2530%252D%2530%25784%2532%2563%2529%2529%252C%257A%2563%2536%2538f%2563%2534%2531%2538%2533%2533%253DS%2574%2572i%256eg%252Ef%2572%256Fm%2543h%2561%2572C%256F%2564%2565%2528%2528%2530%2578%2531%25375%2563%252B%2533%25309%2535%252d0%2578%25323%2530b%2529%252c%2528%2530%2578%25310%2530%2537+%2532%25316%2531%252d0%25781%25380%2534%2529%252c%2528%2530%2578a%2563%2563+%25336%25345%252d0%2578%2531%2538%25395%2529%252c%25280%2578%2531f%2530%2538%252b%25335%2535%252D0%2578%2531f%2566b%2529%252C%25280%2578%2531%2533%25350%252b1%25353%2533%252d0%2578%2531%25391%2533%2529%252c%2528%2530%25781%2561%2539%2538%252B%25380%252D0%25781%2561b%2539%2529%252c%25280%25782%2531%2536+%2538%2530%2537%252D%2530%25785%2530%2565%2529%2529%252cz%2565%25656%25346%2531%25338%2536%2534%253DS%2574r%2569%256Eg%252Ef%2572o%256dC%2568a%2572%2543%256Fd%2565%2528%2528%2530x%25321%2533%2538+%25328%2538%252d%2530x%2532%2532%2532%2561%2529%2529%252c%257A%2536%2562%2561%2534%2531%25371%2530c%2539%253D%2553t%2572i%256E%2567%252E%2566r%256Fm%2543h%2561r%2543o%2564e%2528%2528%2530x%25314%2563%2533%252B%25369%2534%252d%2530%2578%25317%25316%2529%252c%25280%25781%25345%2562+%2531%2536%2539%252D0%25781%25349%2535%2529%252c%25280%2578%25618%2562+%2536%2533%25339%252d0%2578%2532%2532e%2531%2529%2529%252Cz%2533b%25302%2538a%2533%25371%2563%253d%2553%2574r%2569n%2567%252Ef%2572%256F%256d%2543%2568a%2572%2543o%2564%2565%2528%2528%2530%2578%25317%2533%2535%252B%2533%25367%2536%252D%2530x%25325%2531%2561%2529%252C%2528%2530x%2535%2564%2534%252b3%25395%2532%252D0%25781%2534c%2564%2529%252c%2528%2530x%2566%25623%252B%2531%2534%2535%2535%252d%2530%25781%2534%2565b%2529%2529%252C%257a%25346%2533%2538%2538b%2538%2566%25618%253D%2553t%2572%2569n%2567%252ef%2572o%256DC%2568%2561%2572C%256Fd%2565%2528%25280%2578%2534%2564%2537%252B%25312%25367%252d0%2578%2539%2538%2564%2529%2529%252cz%2566%2562a%2531%2565%25651%2562b%2535%253dS%2574r%2569%256eg%252Ef%2572o%256dC%2568%2561r%2543o%2564e%2528%2528%2530%25781%2535%2563%2537+%2533%2533%25334%252D0%25782%25328%2565%2529%2529%252c%257A%2563c%25637%2532%25354%2532d%2534%253D%2553t%2572%2569%256E%2567%252E%2566%2572%256F%256d%2543%2568a%2572%2543%256f%2564e%2528%2528%2530x%2564f%2535+%25362%2539%252D%2530x%2566f%2561%2529%252c%2528%2530x%25322%2565%2538%252B7%25327%252d0%2578%25325%2535%2537%2529%252c%25280%2578%2563%25326%252b6%2533%25378%252D%2530x%2532%2534a%2530%2529%2529%252c%257a%2563a%2532%25331%2538%2533%25307%2561%253d%2553%2574%2572%2569n%2567%252e%2566r%256f%256D%2543h%2561%2572%2543%256F%2564e%2528%25280%25781%2531%25636%252b%25337%25322%252D0%2578%25320%2532a%2529%2529%252C%257a%2537%2533%2561%25655%25386%25332%2564%253DS%2574r%2569n%2567%252ef%2572%256Fm%2543%2568%2561r%2543o%2564e%2528%25280%25782%2532%25652%252B%2534%2532%2538%252d%2530x%2532%25342%2566%2529%2529%252Cz%2564%25661%2562c%2536%2538%2534c%2562%253dS%2574r%2569n%2567%252e%2566r%256fm%2543%2568a%2572C%256fd%2565%2528%2528%2530%2578%2534%2566%2538+%2532%25351%2536%252D%2530x%2565%2535c%2529%252C%2528%2530x%25320%2532c%252B%2531%2531%2532%2530%252d%2530%2578%25324%2531d%2529%252c%2528%2530%25781%25302%2538%252B%2533%25364%2530%252d0%2578%2531%2564f%2534%2529%252c%25280%25782%25381%252b1%2538%2530%2535%252d%2530%2578%25392%2532%2529%252c%2528%2530x%25315%25632%252B%2537%25334%252d%2530%2578%2531%25383%2563%2529%252C%2528%2530x%2534f%2535%252B%25387%2533%2530%252D%2530%2578%25326%2561%2565%2529%252C%25280%2578%25379%2530%252B5%25356%2537%252D%2530x%2531%2563e%2562%2529%252C%25280%25789%2532%252b%25323%25354%252d0%2578%25396%2530%2529%252C%2528%2530%2578%25311%2532%2533%252b4%25322%2531%252D0%2578%25321%2532%2537%2529%2529%252cz%25668%2532b%2564d%2538b%25611%253DS%2574r%2569n%2567%252e%2566r%256F%256d%2543%2568%2561r%2543%256F%2564%2565%2528%2528%2530x%2561%2535c%252b2%2535%25362%252d0%25781%2533%2566a%2529%252C%2528%2530%2578%2531%2539%25639%252B%25312%2532%2531%252D0%25781%2565%25325%2529%252c%25280%2578%25390%2532%252B7%2532%25345%252d%2530x%25324%2564%2563%2529%252C%25280%2578%25635%2531%252b%25353%25397%252D0%2578%2532%2530f%2535%2529%252c%2528%2530%25786%2533c%252B6%25347%2531%252D0%25781%2566%2530e%2529%252C%2528%2530x%2531%25642%2538+%2535%2534%2530%252D%2530x%2531e%2564%2531%2529%2529%253b%2524%2528f%2575n%2563t%2569%256F%256e%2528%2529%257B%2524%2528%2522%255Cx%25323%255c%25787%2533%255cx%2537%2534%255cx%25361%255C%25787%2532%255C%25782%2530%255Cx%2536%2539%255c%25786%2564%255Cx%25367%2522%2529%252Ee%2572r%256F%2572%2528%2566%2575n%2563t%2569%256F%256e%2528%2529%257b%2524%2528%2574h%2569%2573%2529%252eu%256E%2562i%256E%2564%2528%2522%255c%25786%2535%255c%25787%2532%255Cx%2537%2532%255C%2578%2536f%255C%25787%2532%2522%2529%252ea%2574%2574r%2528%2522%255c%25787%2533%255C%25787%2532%255C%2578%25363%2522%252cz%25636%2538f%25634%2531%2538%25333%252B%2522%255cx%25373%255Cx%25332%2522%252B%257ae%25656%2534%25361%2533%2538%2536%2534%252b%2522%255Cx%25367%255cx%2536f%255cx%2536%2566%255c%2578%2536%2537%255cx%2536%2563%255C%2578%25365%255Cx%2537%2535%255cx%25373%255Cx%25365%255cx%2537%2532%255c%2578%2536%2533%255cx%2536%2566%255c%2578%2536%2565%255c%25787%2534%255Cx%25365%255cx%2536e%255C%2578%2537%2534%2522+%257A%2565e%2536%2534%25361%2533%2538%25364%252Bz%2536b%2561%25341%25371%2530%2563%2539%252Bz%2531%2530%2530%2561%25389%2533%2532d%2537%252B%2522%255c%25787%2533%255c%2578%2533%2532%2522%252Bz%2531%25300%2561%2538%25393%2532d%2537+%2522%255c%25786%2536%255Cx%2536%2531%255c%25787%2536%255Cx%25369%255c%2578%2536%2533%255Cx%2536f%255c%25786%2565%255c%25787%2533%2522%2529%253b%257d%2529%253B%2524%2528%2522%255C%2578%2532%2533%255Cx%25361%255c%2578%25364%255C%25786%2534%255Cx%2537%2532%255cx%25365%255cx%25373%255C%25787%2533%2522%2529%252ep%2572%2565p%2565n%2564%2528%2522%255C%2578%2533c%255Cx%25373%255C%25787%2534%255C%25787%2532%255c%25786%2566%255cx%2536e%255cx%25367%255c%2578%2533e%255c%2578%2534%2563%255cx%2536f%255c%25786%2531%255c%2578%2536%2534%255c%25786%2539%255c%25786%2565%255cx%2536%2537%255c%2578%2533%2561%255c%25783%2563%255cx%2532%2566%255C%2578%25373%255C%25787%2534%255c%2578%25372%255c%25786%2566%255C%25786%2565%255C%25786%2537%255Cx%2533e%255c%25782%2530%2522%2529%252e%2573%2568%256f%2577%2528%2529%252e%2561d%2564%2543l%2561%2573%2573%2528%2522%255C%25786%2563%255C%2578%2536f%255cx%25361%255C%25786%2534%255c%2578%25369%255c%25786%2565%255Cx%2536%2537%2522%2529%253b%2524%2528%2522%255cx%2536%2532%255C%25786%2566%255C%25786%2534%255cx%25379%2522%2529%252e%2561%2570p%2565%256e%2564%2528%2522%255Cx%2533%2563%255C%2578%25364%255C%2578%25369%255c%25787%2536%255cx%2532%2530%255C%2578%25369%255Cx%25364%255Cx%2533d%255Cx%25322%255C%25786%2533%255C%25786%2566%255cx%2536d%255c%25786%2564%255Cx%25365%255c%25786%2565%255cx%2537%2534%255cx%2537%2533%255Cx%25322%255c%25783%2565%255c%25783%2563%255Cx%2532%2566%255C%2578%25364%255cx%2536%2539%255Cx%25376%255C%25783%2565%255cx%2533%2563%255Cx%25364%255cx%25369%255Cx%2537%2536%255Cx%2532%2530%255C%2578%25369%255C%25786%2534%255C%25783%2564%255C%2578%2532%2532%255Cx%2537%2533%255Cx%2536%2533%255Cx%2537%2532%255Cx%2536f%255Cx%2536c%255C%2578%2536%2563%255C%2578%2532%2532%255C%25782%2530%255cx%25374%255cx%2536%2539%255Cx%25374%255Cx%2536%2563%255cx%25365%255c%25783%2564%255cx%2532%2532%255c%25785%2533%255cx%25363%255C%25787%2532%255C%25786%2566%255c%2578%2536c%255C%25786%2563%255cx%25320%255c%25784%2534%255C%2578%2536%2566%255Cx%25377%255C%2578%2536%2565%255Cx%25322%255Cx%2533%2565%255Cx%2532%2536%255C%25782%2533%255cx%2533%2539%255c%2578%2533%2536%255cx%2533%2536%255cx%2533%2530%255Cx%2533%2562%255cx%2533%2563%255c%25782%2566%255c%25786%2534%255C%25786%2539%255cx%2537%2536%255c%2578%2533%2565%2522%2529%253b%2524%2528%2522%255C%2578%2532%2533%255cx%2537%2534%255c%25786%2566%255c%25787%2530%2522%2529%252ea%2570p%2565%256E%2564%2528%2522%255c%2578%2533c%255C%2578%2536%2534%255cx%2536%2539%255Cx%25376%255c%25782%2530%255Cx%25369%255cx%25364%255c%25783%2564%255Cx%2532%2532%255Cx%25373%255Cx%2536%2538%255Cx%25361%255Cx%25372%255cx%2536%2535%255Cx%25331%255cx%2532%2532%255cx%2533e%255cx%25342%255c%2578%2536f%255c%2578%2536f%255Cx%2536%2562%255C%25786%2564%255c%2578%2536%2531%255C%2578%2537%2532%255cx%2536%2562%255c%2578%25320%255C%2578%2532%2536%255c%25782%2530%255C%25785%2533%255c%2578%2536%2538%255c%25786%2531%255C%25787%2532%255Cx%25365%255c%2578%2533%2563%255Cx%2532%2566%255Cx%25364%255c%2578%25369%255Cx%2537%2536%255C%2578%2533e%255C%2578%2533c%255c%2578%2536%2534%255C%25786%2539%255C%25787%2536%255C%2578%25320%255cx%25369%255c%2578%2536%2534%255Cx%2533d%255C%2578%2532%2532%255C%25787%2533%255C%25786%2538%255c%2578%2536%2531%255cx%25372%255Cx%25365%255c%25783%2532%255Cx%2532%2532%255cx%2533%2565%255Cx%2533c%255cx%2532f%255c%2578%2536%2534%255Cx%2536%2539%255Cx%2537%2536%255C%25783%2565%2522%2529%253Bi%2566%2528%257a7%2539d%2531b%2538c%2562%25349%2529%257b%2524%2528%2522%255c%25782%2533%255Cx%25364%255C%25786%2563%255C%25786%2531%255c%2578%25364%2522%2529%252ea%2566t%2565%2572%2528%2522%255Cx%2533c%255cx%2536%2534%255cx%2536%2539%255cx%25376%255Cx%2532%2530%255C%2578%25369%255c%2578%25364%255C%25783%2564%255c%2578%25322%255Cx%25372%255c%2578%2536%2531%255C%2578%25374%255C%25786%2535%255C%25782%2532%255C%25783%2565%255c%25782%2536%255Cx%2532%2533%255C%2578%25339%255c%2578%25336%255C%2578%2533%2536%255c%2578%25330%255c%25783%2562%255Cx%2532%2530%255Cx%2535%2532%255Cx%25361%255c%2578%25374%255C%25786%2535%255c%25782%2530%255cx%25374%255cx%2536%2538%255C%25786%2539%255C%2578%2537%2533%255Cx%2532%2530%255C%25784%2534%255c%25786%2566%255C%2578%2537%2537%255c%2578%2536e%255C%25786%2563%255C%2578%2536f%255Cx%25361%255c%25786%2534%255c%2578%2533%2563%255c%25782%2566%255Cx%2536%2534%255cx%2536%2539%255c%25787%2536%255Cx%2533e%255C%2578%2533c%255C%2578%2536%2534%255C%25786%2539%255cx%2537%2536%255cx%2532%2530%255cx%25369%255Cx%25364%255cx%2533d%255c%25782%2532%255c%25787%2534%255c%25786%2538%255C%25787%2535%255cx%2536d%255cx%25362%255c%2578%25373%255c%25782%2532%255c%2578%25320%255cx%2536%2533%255C%25786%2563%255cx%2536%2531%255C%2578%25373%255Cx%25373%255cx%2533d%255Cx%2532%2532%255C%2578%25365%255c%2578%2536%2565%255c%25786%2531%255cx%2536%2532%255c%2578%2536c%255C%25786%2535%255cx%25364%255c%2578%25322%255Cx%2533e%255Cx%2533%2563%255c%25782%2566%255cx%25364%255cx%2536%2539%255cx%25376%255cx%2533e%255cx%2533%2563%255cx%25364%255C%25786%2539%255Cx%25376%255cx%25320%255C%2578%2536%2539%255Cx%25364%255Cx%2533%2564%255C%2578%25322%255cx%2537%2534%255c%2578%25368%255c%25787%2535%255c%25786%2564%255Cx%25362%255c%25787%2533%255Cx%2533%2532%255Cx%25322%255c%2578%2533e%255C%25783%2563%255c%25787%2533%255C%25787%2530%255Cx%2536%2531%255cx%2536%2565%255cx%2533e%255C%2578%2532%2564%255c%25783%2563%255c%25782%2566%255C%2578%2537%2533%255cx%2537%2530%255Cx%2536%2531%255C%2578%2536%2565%255cx%2533e%255C%25783%2563%255cx%25373%255Cx%25370%255Cx%25361%255cx%2536e%255cx%2533e%255Cx%2532d%255c%2578%2533%2563%255c%25782%2566%255Cx%2537%2533%255C%2578%25370%255c%25786%2531%255c%2578%2536e%255C%2578%2533%2565%255C%2578%2533%2563%255c%25782%2566%255cx%2536%2534%255c%25786%2539%255Cx%2537%2536%255cx%2533%2565%2522%2529%253b%2524%2528%2522%255Cx%25323%255C%25787%2534%255cx%2536%2538%255cx%25375%255cx%2536d%255C%2578%25362%255cx%2537%2533%2522%2529%252e%2568%2574m%256c%2528%2522%255cx%2533%2563%255Cx%2537%2533%255Cx%2537%2530%255Cx%2536%2531%255cx%2536e%255C%2578%25320%255C%2578%25369%255C%25786%2534%255C%25783%2564%255Cx%25322%255c%25787%2534%255c%25786%2564%255c%25787%2533%255C%25786%2537%255cx%25322%255cx%2533e%255cx%2533c%255Cx%25373%255cx%2537%2530%255Cx%25361%255C%2578%2536%2565%255cx%2533e%255Cx%2533c%255C%25782%2566%255C%2578%25373%255cx%25370%255cx%25361%255cx%2536e%255c%2578%2533e%255c%25783%2563%255cx%2532%2566%255C%2578%25373%255cx%2537%2530%255C%25786%2531%255c%2578%2536e%255cx%2533%2565%255c%25783%2563%255c%2578%2536%2534%255Cx%2536%2539%255C%2578%25376%255Cx%2532%2530%255Cx%25369%255cx%25364%255c%25783%2564%255cx%2532%2532%255cx%2537%2534%255Cx%2536%2534%255cx%2536f%255C%2578%2532%2532%255Cx%2533e%255c%25783%2563%255C%25782%2566%255cx%2536%2534%255cx%25369%255Cx%2537%2536%255c%25783%2565%255cx%2533c%255C%25786%2534%255Cx%25369%255cx%2537%2536%255c%2578%25320%255Cx%25369%255cx%2536%2534%255cx%2533d%255C%25782%2532%255c%2578%25374%255c%2578%2537%2535%255Cx%2537%2530%255C%25782%2532%255C%25783%2565%255c%25783%2563%255c%25782%2566%255Cx%25364%255C%25786%2539%255c%2578%25376%255c%2578%2533%2565%2522%2529%252e%2566%2569n%2564%2528%2522%255c%25782%2533%255C%2578%25374%255c%25786%2564%255C%25787%2533%255Cx%25367%2522%2529%252eh%2569d%2565%2528%2529%253B%257d%2524%2528%2522%255Cx%2532%2533%255c%25787%2534%255cx%2536f%255Cx%2537%2530%2522%2529%252e%2568o%2576e%2572%2528f%2575%256Ec%2574i%256fn%2528%2529%257b%2524%2528%2522%255c%25782%2533%255C%25787%2533%255c%25787%2534%255C%25786%2531%255cx%25372%255C%25782%2530%255Cx%2536%2539%255C%25786%2564%255C%25786%2537%2522%2529%252Es%2574%256fp%2528%2529%252Ea%256e%2569m%2561%2574%2565%2528%257B%256Fp%2561%2563%2569t%2579%253a%25280%2578%25376%2530%252B6%25395%2534%252d%2530%25782%2532%2538a%2529%257D%2529%253b%2524%2528%2522%255C%25782%2533%255Cx%2537%2533%255cx%2536%2538%255c%25786%2531%255C%2578%25372%255c%2578%2536%2535%255c%2578%25331%2522%2529%252Es%2574o%2570%2528%2529%252ea%256Ei%256Da%2574%2565%2528%257bo%2570%2561c%2569t%2579%253a%25280%2578e%25615%252B5%25371%2538%252d0%2578%2532%2534f%2562%2529%257D%252C%2528%2530x%2533a%2530+%2538%2530%2533%252d0%2578%2535%2533%2533%2529%252Cf%2575%256ec%2574i%256fn%2528%2529%257b%2524%2528%2574%2568%2569s%2529%252eh%2569d%2565%2528%2529%253b%257D%2529%253b%257d%252c%2566%2575n%2563t%2569%256F%256e%2528%2529%257B%2524%2528%2522%255Cx%2532%2533%255C%25787%2533%255cx%2537%2534%255Cx%25361%255Cx%2537%2532%255cx%25320%255Cx%2536%2539%255cx%2536%2564%255cx%2536%2537%2522%2529%252es%2574o%2570%2528%2529%252ea%256E%2569%256Da%2574%2565%2528%257Bo%2570%2561%2563i%2574y%253A%2528%2530x%2531%2537c%2566+%25318%2534%2530%252d%2530x%2531%2565%2566e%2529%257D%2529%253B%2524%2528%2522%255c%25782%2533%255cx%2537%2533%255c%2578%25368%255Cx%25361%255Cx%25372%255cx%25365%255Cx%25331%2522%2529%252es%2568%256F%2577%2528%2529%252e%2573%2574o%2570%2528%2529%252E%2561n%2569%256Da%2574e%2528%257bo%2570%2561%2563i%2574y%253A%2528%2530%25781%2537%2561%2564%252B3%2535%25346%252d%2530x%25325%2538%2536%2529%257d%2529%253b%257d%2529%253b%2524%2528%2522%255C%25782%2533%255c%25787%2533%255Cx%25374%255c%2578%25361%255cx%2537%2532%2522%2529%252E%2563%256c%2569%2563%256B%2528f%2575n%2563%2574i%256Fn%2528%2529%257Ba%256Ce%2572%2574%2528%2522%255cx%2535%2530%255c%2578%2537%2532%255Cx%2536%2535%255Cx%25373%255cx%2537%2533%255c%2578%2532%2530%255Cx%25322%2522+%2528n%2561%2576i%2567a%2574o%2572%252ea%2570%2570%2556e%2572s%2569%256F%256e%252ei%256Ed%2565x%254ff%2528%2522%255C%2578%2534d%255C%2578%25361%255Cx%25363%2522%2529%2521%253D%252D%2528%2530x%2565%2531%2564%252b%25338%25304%252d0%2578%2531c%2566%2538%2529%253f%2522%255c%2578%2534%2533%255C%2578%2536d%255Cx%2536%2534%2522%253a%2522%255C%25784%2533%255cx%2537%2534%255Cx%25372%255C%2578%2536c%2522%2529+%2522%255C%2578%2532%2532%255cx%25320%255c%2578%25361%255C%25786%2565%255c%25786%2534%255C%25782%2530%255c%2578%2532%2532%255Cx%25344%255Cx%2532%2532%255c%2578%25320%255cx%2536%2566%255c%2578%2536e%255C%25782%2530%255c%2578%2537%2539%255c%25786%2566%255c%2578%25375%255C%2578%2537%2532%255c%25782%2530%255c%25786%2562%255Cx%25365%255c%25787%2539%255Cx%25362%255C%2578%2536f%255cx%2536%2531%255C%25787%2532%255c%25786%2534%255cx%2532%2530%255Cx%25374%255Cx%2536%2566%255Cx%25320%255C%2578%25362%255C%2578%2536f%255C%25786%2566%255C%2578%2536b%255cx%2536%2564%255Cx%2536%2531%255C%25787%2532%255Cx%2536%2562%255cx%25320%255Cx%2537%2534%255C%2578%25368%255cx%25369%255cx%2537%2533%255c%25782%2530%255C%25787%2537%255c%2578%2536%2535%255cx%25362%255c%25782%2530%255c%2578%25370%255C%2578%25361%255Cx%25367%255cx%2536%2535%255c%2578%2532e%2522%2529%253Bz%25333%25309%25668%2566%2532a%2561%2528%2529%253b%257D%2529%253b%2524%2528%2522%255C%2578%2532%2533%255c%25787%2533%255C%2578%2537%2534%255Cx%25361%255Cx%2537%2532%255C%2578%2532%2563%255C%2578%2532%2533%255cx%2536%2531%255cx%25364%255Cx%2536%2534%255c%2578%25361%255c%2578%25372%255Cx%2537%2532%2522%2529%252E%2568%256f%2576%2565r%2528f%2575%256ec%2574i%256f%256E%2528%2529%257bi%2566%2528%2524%2528%2522%255C%25782%2533%255C%25786%2531%255cx%25364%255C%25786%2534%255C%25787%2532%255Cx%25365%255cx%25373%255c%2578%25373%2522%2529%252e%2561t%2574%2572%2528%2522%255c%2578%25363%255cx%2536c%255Cx%2536%2531%255c%2578%25373%255c%25787%2533%2522%2529%253d%253D%2522%255c%2578%2536c%255c%25786%2566%255cx%25361%255c%25786%2534%255c%25786%2539%255C%25786%2565%255c%25786%2537%2522%2529%257br%2565t%2575%2572n%253B%257Dc%256C%2565%2561%2572T%2569%256de%256f%2575t%2528z%2532f%2561%25642%2564%2534%2563%2565c%2529%253b%2524%2528%2522%255cx%25323%255Cx%2536%2531%255c%25786%2534%255C%2578%25364%255Cx%25372%255Cx%25365%255Cx%2537%2533%255c%2578%25373%255C%2578%2532%2530%255c%2578%2537%2533%255c%25787%2534%255c%25787%2532%255cx%2536%2566%255cx%2536e%255Cx%25367%2522%2529%252E%2568%2574%256Dl%2528%2522%255cx%2535%2539%255cx%2536%2566%255c%2578%2537%2535%255C%2578%25327%255c%2578%2537%2532%255cx%2536%2535%255C%25782%2530%255Cx%2537%2536%255Cx%25369%255Cx%25373%255C%25786%2539%255c%2578%25374%255c%25786%2539%255cx%2536e%255cx%25367%255C%2578%2533%2561%2522%2529%253b%2524%2528%2522%255c%2578%25323%255Cx%2536%2531%255c%2578%2536%2534%255Cx%2536%2534%255cx%2537%2532%255C%2578%25365%255C%25787%2533%255cx%2537%2533%2522%2529%252es%2568o%2577%2528%2529%252ea%256ei%256da%2574%2565%2528%257Bt%256F%2570%253A%2528%2530x%25310%2561%2534+%2532%25354%2539%252d0%2578%2531a%25399%2529%257D%252C%25280%25786%25335%252B1%2539%2539%252D0%25786%25334%2529%2529%253b%257D%252cf%2575n%2563t%2569%256Fn%2528%2529%257B%257A2%25362%2534%2531d%2561%2537c%2537%2528%2529%253B%257d%2529%253B%2524%2528%2522%255cx%25323%255Cx%2536%2531%255cx%25364%255Cx%2536%2534%255c%2578%2537%2532%255cx%2536%2535%255c%2578%2537%2533%255c%2578%2537%2533%2522%2529%252e%2568o%2576e%2572%2528f%2575%256ec%2574i%256f%256e%2528%2529%257bc%256C%2565%2561%2572T%2569m%2565o%2575t%2528%257a2%2566%2561d%2532d%2534%2563%2565c%2529%253B%257d%252c%2566u%256ec%2574i%256f%256e%2528%2529%257B%257A%25326%2532%2534%2531%2564a%2537c%2537%2528%2529%253B%257D%2529%253B%2524%2528%2522%255Cx%25323%255c%25787%2534%255C%25786%2538%255c%2578%25375%255cx%2536%2564%255C%2578%25362%255cx%25373%2522%2529%252E%2568o%2576%2565%2572%2528%2566%2575%256ec%2574%2569o%256e%2528%2529%257B%2524%2528%2522%255C%2578%25323%255Cx%2537%2534%255c%2578%2536%2538%255Cx%2537%2535%255c%25786%2564%255cx%25362%255c%25787%2533%255C%25782%2530%255C%25782%2533%255c%25787%2534%255Cx%2536d%255C%25787%2533%255c%2578%2536%2537%2522%2529%252e%2573t%256f%2570%2528%2529%252Es%2568o%2577%2528%2529%252e%2561n%2569%256d%2561t%2565%2528%257B%256d%2561%2572g%2569%256e%2554o%2570%253A%252d%2528%2530%2578%25371%2532%252B%25356%2530%252d0%2578%2539%25309%2529%257d%252c%2528%2530x%2532%2536%2566+%2531%25315%2534%252d0%25786%2538%2564%2529%252cf%2575n%2563t%2569%256F%256E%2528%2529%257B%2524%2528t%2568%2569s%2529%252e%2573%2568%256f%2577%2528%2529%253b%257D%2529%253b%257D%252c%2566%2575%256E%2563%2574%2569%256fn%2528%2529%257B%2524%2528%2522%255cx%25323%255c%25787%2534%255c%2578%2536%2538%255Cx%25375%255cx%2536d%255cx%2536%2532%255Cx%25373%255C%25782%2530%255cx%25323%255C%25787%2534%255c%2578%2536d%255C%2578%25373%255C%2578%2536%2537%2522%2529%252Es%2574o%2570%2528%2529%252E%2561n%2569%256d%2561t%2565%2528%257bm%2561%2572g%2569n%2554%256fp%253A%2528%2530%25781%2534%25626%252b5%2539%252D%2530x%2531%2534f%2531%2529%257d%252c%2528%2530%2578%25360%2562+%2531%25356%2534%252D%2530x%25625%2566%2529%252cf%2575%256E%2563t%2569o%256E%2528%2529%257b%2524%2528%2574h%2569s%2529%252E%2568i%2564%2565%2528%2529%253b%257D%2529%253B%257D%2529%253B%2524%2528%2522%255Cx%2532%2533%255cx%25374%255cx%2536%2538%255C%25787%2535%255cx%2536%2564%255C%25786%2532%255c%25787%2533%255Cx%2532%2530%255cx%2532%2533%255Cx%25374%255c%25786%2534%255c%2578%2536f%2522%2529%252Eh%256fv%2565r%2528f%2575n%2563%2574i%256Fn%2528%2529%257B%2524%2528%2522%255Cx%25323%255Cx%2537%2534%255c%25786%2538%255C%2578%2537%2535%255C%25786%2564%255C%25786%2532%255C%25787%2533%255c%2578%25320%255Cx%25323%255cx%2537%2534%255C%25786%2564%255Cx%25373%255c%25786%2537%2522%2529%252e%2572%2565m%256f%2576%2565C%256C%2561s%2573%2528%2522%255c%2578%2537%2534%255cx%25375%255cx%2537%2530%2522%2529%252e%2561d%2564C%256C%2561s%2573%2528%2522%255c%25787%2534%255cx%2536%2534%255cx%2536f%2522%2529%253b%2524%2528%2522%255Cx%25323%255cx%25374%255c%25786%2538%255Cx%2537%2535%255Cx%2536d%255cx%2536%2532%255Cx%25373%255c%25782%2530%255c%25782%2533%255C%25787%2534%255cx%2536%2564%255Cx%25373%255Cx%25367%255c%25782%2530%255c%25787%2533%255c%2578%25370%255Cx%2536%2531%255C%25786%2565%2522%2529%252Eh%2574%256Dl%2528%2522%255cx%2535%2534%255C%2578%2536%2538%255cx%2536%2539%255cx%25373%255c%25782%2530%255Cx%25364%255Cx%2536f%255C%2578%2537%2537%255Cx%2536e%255C%2578%2536c%255C%2578%2536%2566%255cx%25361%255Cx%2536%2534%255C%25782%2530%255cx%2536%2534%255C%2578%2536f%255c%25786%2535%255C%2578%25373%255c%2578%2533c%255c%2578%2536%2532%255cx%2537%2532%255Cx%25320%255c%25782%2566%255C%2578%2533%2565%255cx%2533%2563%255c%25787%2533%255c%2578%25370%255c%25786%2531%255c%2578%2536e%255cx%25320%255c%2578%25363%255C%2578%2536%2563%255c%25786%2531%255Cx%25373%255cx%2537%2533%255cx%2533d%255Cx%2532%2532%255C%2578%25362%255cx%2536%2566%255c%2578%2536%2563%255C%2578%25364%255Cx%2532%2532%255cx%2533e%255c%25783%2563%255C%25787%2533%255Cx%25370%255C%25786%2531%255Cx%2536%2565%255Cx%2532%2530%255Cx%2536%2533%255cx%2536c%255Cx%25361%255Cx%25373%255Cx%2537%2533%255C%2578%2533d%255C%2578%25322%255cx%25375%255c%25786%2563%255C%25786%2539%255cx%2536e%255c%25786%2535%255cx%2532%2532%255Cx%2533%2565%255c%2578%2536%2565%255cx%2536%2566%255Cx%25374%255cx%2533%2563%255Cx%2532f%255cx%2537%2533%255cx%2537%2530%255cx%25361%255Cx%2536e%255C%25783%2565%255c%25782%2530%255cx%25377%255cx%2536f%255c%25787%2532%255C%2578%2536%2562%255Cx%2533%2563%255cx%2532%2566%255Cx%2537%2533%255Cx%25370%255c%25786%2531%255Cx%2536%2565%255c%2578%2533e%255cx%25320%255C%25786%2566%255c%25787%2532%255cx%2532%2530%255c%2578%25369%255c%2578%25373%255Cx%2536e%255C%25782%2537%255C%2578%25374%255C%25783%2563%255cx%25362%255C%25787%2532%255C%25782%2530%255c%2578%2532f%255cx%2533e%255Cx%25377%255Cx%2536%2538%255Cx%25361%255C%25787%2534%255cx%2532%2530%255c%25784%2539%255c%25782%2530%255c%2578%2536%2535%255C%25787%2538%255c%25787%2530%255Cx%2536%2535%255C%25786%2533%255cx%25374%255c%25786%2535%255cx%2536%2534%255Cx%2532e%2522%2529%253b%257d%2529%253b%2524%2528%2522%255c%2578%25323%255Cx%2537%2534%255C%25786%2538%255C%25787%2535%255Cx%2536%2564%255Cx%2536%2532%255c%25787%2533%255cx%25320%255c%25782%2533%255cx%2537%2534%255c%25787%2535%255Cx%2537%2530%2522%2529%252Eh%256F%2576e%2572%2528f%2575%256e%2563%2574%2569%256F%256E%2528%2529%257B%2524%2528%2522%255c%2578%2532%2533%255C%2578%2537%2534%255c%25786%2538%255c%2578%25375%255c%25786%2564%255cx%25362%255c%2578%2537%2533%255C%2578%25320%255Cx%25323%255c%2578%2537%2534%255Cx%2536d%255Cx%25373%255c%25786%2537%2522%2529%252E%2572e%256D%256fv%2565%2543l%2561s%2573%2528%2522%255cx%2537%2534%255c%25786%2534%255Cx%2536%2566%2522%2529%252E%2561%2564%2564C%256c%2561%2573%2573%2528%2522%255cx%2537%2534%255C%2578%2537%2535%255Cx%25370%2522%2529%253B%2524%2528%2522%255Cx%25323%255Cx%2537%2534%255Cx%25368%255cx%25375%255cx%2536d%255c%2578%25362%255Cx%2537%2533%255cx%2532%2530%255Cx%25323%255Cx%2537%2534%255Cx%2536%2564%255Cx%25373%255cx%2536%2537%255Cx%2532%2530%255c%25787%2533%255cx%2537%2530%255c%25786%2531%255cx%2536e%2522%2529%252Eh%2574m%256C%2528%2522%255C%2578%25349%255Cx%2532%2530%255Cx%2536%2538%255Cx%2536%2531%255c%2578%2537%2536%255cx%25365%255cx%2532%2530%255Cx%25364%255cx%2536f%255Cx%25377%255c%25786%2565%255cx%2536%2563%255cx%2536f%255cx%25361%255cx%2536%2534%255C%2578%25365%255Cx%25364%255c%2578%2533%2563%255C%2578%25362%255c%25787%2532%255C%2578%25320%255Cx%2532%2566%255c%2578%2533e%255cx%2537%2534%255C%2578%2536%2538%255Cx%2536%2539%255c%25787%2533%255C%25782%2530%255Cx%2536%2531%255c%2578%2536e%255cx%25364%255C%25782%2530%255c%25786%2539%255c%2578%2537%2534%255cx%25320%255C%2578%2533%2563%255Cx%25373%255cx%2537%2534%255Cx%2537%2532%255C%2578%2536%2566%255cx%2536e%255c%2578%25367%255cx%2533%2565%255cx%25377%255cx%2536f%255C%2578%2537%2532%255cx%2536%2562%255C%25787%2533%255Cx%25320%255c%25782%2536%255Cx%2536%2565%255Cx%2536%2532%255C%2578%25373%255Cx%25370%255Cx%2533b%255cx%2532%2530%255C%25782%2536%255cx%2536e%255Cx%25362%255c%25787%2533%255cx%2537%2530%255c%2578%2533%2562%255Cx%2532%2530%255Cx%25326%255C%2578%2536e%255cx%25362%255Cx%25373%255cx%2537%2530%255cx%2533b%255Cx%2533%2563%255Cx%2536%2532%255Cx%2537%2532%255cx%25320%255Cx%2532f%255C%2578%2533%2565%255cx%2536%2537%255c%2578%25372%255C%2578%25365%255C%2578%2536%2531%255C%25787%2534%255C%25783%2563%255cx%2532f%255cx%2537%2533%255Cx%2537%2534%255cx%25372%255C%2578%2536%2566%255C%2578%2536%2565%255cx%2536%2537%255cx%2533%2565%255C%25782%2531%255C%25782%2536%255cx%2536e%255cx%2536%2532%255cx%25373%255Cx%25370%255Cx%2533b%255c%25782%2530%255c%25782%2536%255C%25786%2565%255Cx%2536%2532%255C%25787%2533%255Cx%25370%255Cx%2533%2562%255cx%2532%2530%255c%2578%2532%2536%255Cx%2536e%255c%25786%2532%255cx%25373%255C%25787%2530%255cx%2533%2562%2522%2529%253b%257d%2529%253B%2524%2528%2522%255c%25782%2533%255Cx%2537%2534%255C%2578%2536%2538%255Cx%25375%255Cx%2536%2564%255cx%2536%2532%255C%25787%2533%255Cx%2532%2530%255C%2578%2532%2533%255Cx%25374%255Cx%25364%255cx%2536f%2522%2529%252e%2563%256ci%2563%256B%2528%2566%2575%256E%2563%2574i%256Fn%2528%2529%257Bw%2569n%2564o%2577%255b%2522%255Cx%25350%255Cx%2534%2534%255cx%25352%255Cx%25354%255c%2578%2534a%255Cx%25353%255Cx%2535f%2522%252b%2572a%2574e%2569%2564%255D%252ez%25614%2564d%2530%2565%2564c%25660%2528%25280%25788%25620%252b%25357%2535%2534%252d%2530%2578%2531%2566%2532%2538%2529%2529%253B%2524%2528%2524%2528%2522%255c%2578%25323%255C%25787%2530%255C%2578%2536%2566%255c%25786%2563%255Cx%2536c%255c%25783%2531%2522%2529%252el%2565n%2567%2574h%2526%2526%2524%2528%2522%255c%2578%2532%2533%255Cx%25370%255Cx%2536%2566%255cx%2536c%255cx%2536c%255C%2578%2533%2531%2522%2529%252ei%2573%2528%2522%255c%25783%2561%255c%25787%2536%255cx%25369%255C%2578%25373%255C%2578%25369%255cx%2536%2532%255C%25786%2563%255cx%2536%2535%2522%2529%253f%2522%255cx%2532%2533%255c%25787%2530%255C%25786%2566%255C%2578%2536%2563%255C%25786%2563%255C%25783%2531%2522%253a%2522%255c%2578%25323%255cx%25370%255Cx%2536%2535%255C%25787%2532%255c%2578%2536%2533%255cx%2536%2535%255cx%2536e%255Cx%2537%2534%2522%2529%252e%2566%2561%2564e%254F%2575%2574%2528%2522%2522%252Cf%2575%256E%2563%2574i%256f%256E%2528%2529%257b%2524%2528%2522%255c%25782%2533%255Cx%25370%255Cx%2536%2535%255cx%2537%2532%255cx%2536%2533%255C%25786%2535%255Cx%2536e%255Cx%2537%2534%2522%2529%252ea%2566%2574e%2572%2528%2522%255c%2578%2533%2563%255C%25786%2534%255C%2578%25369%255C%2578%25376%255cx%25320%255C%2578%25369%255C%2578%25364%255c%2578%2533%2564%255cx%25322%255Cx%25370%255C%2578%2536f%255C%25786%2563%255cx%2536%2563%255c%2578%2533%2532%255c%2578%2532%2532%255c%25783%2565%255Cx%2533%2563%255c%25786%2534%255c%2578%2536%2539%255cx%2537%2536%255cx%25320%255C%25786%2539%255C%25786%2534%255c%2578%2533d%255cx%2532%2532%255Cx%25350%255c%2578%25344%255C%2578%2534%2539%255C%2578%2535%2566%255C%25786%2533%255Cx%2536%2566%255c%25786%2565%255c%2578%2537%2534%255cx%2536%2531%255Cx%2536%2539%255cx%2536%2565%255Cx%25365%255C%2578%25372%2522+%2570o%256c%256c%2569d%252B%2522%255c%2578%2532%2532%255C%25783%2565%255C%25784%2563%255cx%2536f%255C%25786%2531%255c%2578%25364%255Cx%2536%2539%255C%25786%2565%255C%25786%2537%255c%2578%2532e%255c%2578%2532e%255c%2578%2532%2565%255cx%2533%2563%255Cx%2532f%255cx%2536%2534%255Cx%25369%255c%25787%2536%255C%2578%2533%2565%255Cx%2533c%255C%25782%2566%255Cx%2536%2534%255c%25786%2539%255c%25787%2536%255c%2578%2533e%2522%2529%253b%2524%2528%2522%255c%25782%2533%255Cx%25370%255Cx%2536f%255cx%2536%2563%255Cx%2536c%255cx%2533%2532%2522%2529%252eh%2569d%2565%2528%2529%253b%2524%252e%2567%2565t%2553%2563r%2569%2570t%2528%257A%2563%2536%2538%2566c%25341%25383%2533+%2522%255C%25787%2533%255C%25787%2534%255C%25786%2531%255C%2578%2537%2534%255cx%25369%255C%2578%2536%2533%2522+%257a%2565e%25364%25361%2533%2538%2536%2534+%257Ad%25661%2562%2563%2536%25384%2563b%252bz%2565e%2536%25346%25313%25386%2534%252b%257A6%2562a%2534%25317%25310%2563%2539%252bz%2531%25300%2561%25389%25332%2564%2537%252b%2522%255Cx%25370%2522+%257a%2531%2530%2530%2561%2538%25393%2532d%2537%252B%2570%256f%256c%256Ci%2564%252b%257A%2565%2565%2536%25346%25313%2538%25364%252b%2522%255Cx%2536a%255c%2578%2537%2533%2522%252Cf%2575n%2563%2574%2569o%256E%2528%2529%257B%2524%2528%2522%255cx%2532e%255C%2578%2537%2530%255Cx%25364%255cx%25373%255Cx%2532%2564%255C%25786%2531%255C%25786%2565%255Cx%2537%2533%255cx%2537%2537%255Cx%25365%255c%25787%2532%255Cx%25

    Read the article

  • php- javascript

    - by arafat
    i got a sales web site each time i press "sales" button it it will open a new frame. there is a possibility for more then one frame at the same time. my problem is i want to close the frame after i click enter and home page to be updated provided all the other pending sales frames are remain open.... i tried to do so with window concept also no use so any body can geve a solution regards

    Read the article

  • Use a JSON array with objects with javascript

    - by Fredrik Johansson
    Hi, I have a function that will get a JSON array with objects. In the function I will be able to loop through the array, access a property and use that property. Like this: Variable that I will pass to the function will look like this: [{"id":28,"Title":"Sweden"}, {"id":56,"Title":"USA"}, {"id":89,"Title":"England"}] function test(myJSON) { // maybe parse my the JSON variable? // and then I want to loop through it and access my IDs and my titles } Any suggestions how I can solve it? Regards, Fredrik

    Read the article

  • Javascript OLE Word

    - by Martijn
    I want to show a MS Word environment in an Iframe without all the toobars. The document that is being showed contains input fields. After these fields are filled in, the document must be printed. I have created the print button and want the (filled in) document printed when this button is clicked. I hope you understand want I want and hope you can help out.

    Read the article

  • Does changing window.location stop execution of javascript?

    - by Aleksander Kmetec
    When writing server-side code you need to explicitly stop execution after sending a "Location: ..." header to the client or your code will continue to execute in the background. But what about when you change window.location in a client-side script? Does this immediately stop execution of the current script or is it up to the programmer to make sure that any code located after this call is not reached?

    Read the article

  • destroy cfwindow in javascript 'is not a function'

    - by Ryan French
    Hi All, Having an issue here that I have tried everything I can think of but cant get it to work. I have a page with a link that creates a cfwindow like so function create_window(ID){ var config = new Object(); config.modal=true; config.center=true; config.height=775; config.width=700; config.resizable=false; config.closable=false; config.draggable=false; config.refreshonshow=true; ColdFusion.Window.create('newWindow','Window Title', '/source/url'+ID, config) The window is created and the URL has the ID parsed to it that is used for displaying the correct item in the window. This all works fine. The problem is when I try and close the window and open a new window with a different item being displayed, the URL is not changed. I realise that this is because the window is being hidden, and not destroyed, and therefore it is the same window being opened. So I have created an onHide event handler to destroy the window like so. function showItemDetails(){ var ID=document.getElementById("sList").value create_window(ID); ColdFusion.Window.onHide('newWindow', refreshList); } function refreshList(){ ColdFusion.bindHandlerCache['sList'].call(); ColdFusion.Window.destroy('newWindow',true); } Now when I close the window Firebug is returning the error "ColdFusion.Window.destroy is not a function" (In IE the error is "Object doesn't support this property or method"). I have made sure we are running the latest version of ColdFusion 8.01 on the server (as I know that .destroy wasnt added until 8.01) and have applied the latest hotfixes to the server as well. Any ideas?

    Read the article

  • problem getting info from a cookie with javascript

    - by Jason
    I am having an issue with my cookies and I can't figure it out. Basically I have it set up so it checks for the cookie to see if the user is logged in, and then displays either a welcome message or a login link. It works - except that instead of returning the persons name in the welcome message it just is blank where the name should be. The cookie is there, with all the appropriate info.. not sure what I am doing wrong. var itm = new Array(); itm[0] = findCookie("ui"); if (itm[0] == null) { document.write("<h2><a href='logreg.html'>Log In or Sign Up</a></h2>"); } else { var c1 = itm[0].indexOf(","); var c2 = itm[0].indexOf(",",c1); var c3 = itm[0].indexOf(",",c2); var gname = itm[0].substring(c2,c3); document.write("<h2>Welcome "+gname+"!</h2>"); } The findCookie function is.. function findCookie(val){ var cookie = null; var findVal = val + "="; var dc = document.cookie; if (dc.length > 0) { var start = dc.indexOf(findVal); if (start >= 0) { start += findVal.length; lastVal = dc.indexOf(";", start); if (lastVal == -1) { lastVal = dc.length; } cookie = (dc.substring(start, lastVal)); } else { return cookie; } } return cookie; }

    Read the article

  • Calculate total by javascript in gridview with paging

    - by louis
    Without paging function, i can loop through the gridview by using var sum = 0; var gridViewCtlId = '<%=timesheetView.ClientID%>'; var grid = document.getElementById(gridViewCtlId); var gridLength = grid.rows.length; so with gridLength i can loop through the gridview to sum all rows. However, when I use paging event of gridview, i use the page size to loop through all rows, but it occurs errors because the last page may not have enough rows. So would you please to help me how to get the rows in the each page of gridview?

    Read the article

  • javascript regex: match altered version of first match with only one expression

    - by theseion
    Hi there I'm writing a brush for Alex Gorbatchev's Syntax Highlighter to get highlighting for Smalltalk code. Now, consider the following Smalltalk code: aCollection do: [ :each | each shout ] I want to find the block argument ":each" and then match "each" every time it occurrs afterwards (for simplicity, let's say every occurrence an not just inside the brackets). Note that the argument can have any name, e.g. ":myArg". My attempt to match ":each": \:([\d\w]+) This seems to work. The problem is for me to match the occurrences of "each". I thought something like this could work: \:([\d\w]+)|\1 but the right hand side of the alternation seems to be treated as an independent expression, so backreferencing doesn't work. So my question is: is it even possible to accomplish what I want in a single expression? Or would I have to use the backreference within a second expression (via another function call)? Cheers.

    Read the article

  • Javascript redeclared global variable overrides old value

    - by Yousuf Haider
    I ran into an interesting issue the other day and was wondering if someone could shed light on why this is happening. Here is what I am doing (for the purposes of this example I have dumbed down the example somewhat): I am creating a globally scoped variable using the square bracket notation and assigning it a value. Later I declare a var with the same name as the one I just created above. Note I am not assigning a value. Since this is a redeclaration of the same variable the old value should not be overriden as described here: http://www.w3schools.com/js/js_variables.asp //create global variable with square bracket notation window['y'] = 'old'; //redeclaration of the same variable var y; if (!y) y = 'new'; alert(y); //shows New instead of Old The problem is that the old value actually does get overriden and in the above eg. the alert shows 'new' instead of 'old'. Why ? I guess another way to state my question is how is the above code different in terms of semantics from the code below: //create global variable var y = 'old'; //redeclaration of the same variable var y; if (!y) y = 'new'; alert(y); //shows Old

    Read the article

  • Easy Javascript Regex Question

    - by Matrym
    Why doesn't this assign prepClass to the string selectorClass with underscores instead of non alpha chars? What do I need to change it to? var regex = new RegExp("/W/", "g"); var prepClass = selectorClass.replace(regex, "_");

    Read the article

  • Chnaging Displayed Image on a Webpage Using Javascript

    - by Gavin
    Hi all, I'm having some trouble changing an image being displayed on a page by way of a dropdown menu selection. This works fine.. getting the dropdown menu to give me an alert when I make a selection. Even though the menu is embedded within a division, paragraph, and label tag, it still works. "availableImages" is the name of my menu. function imageSelect() { var index = document.getElementById("myForm").availableImages.selectedIndex; var value = document.getElementById("myForm").availableImages.options[index].value; alert("test " + value); // alert box pops up upon list item selection } However, within the same division, I am having an issue with changing the source of my image tag... Any ideas? I will provide more code if it will be helpful. Thanks! Gavin

    Read the article

  • Safari Javascript parent.frames.length

    - by Engwan
    I get a parse error from Safari with this code: for (var i=0; i<parent.frames.length; i++){...} doing alert(parent.frames.length); works and outputs the correct value which is 5. I also tried but failed: var len = parent.frames.length alert(len); //Correct for (var i=0; i<len; i++){...} //Parse Error When i type this code into the console directly, it works fine. And it also works fine in other browsers. What seems to be the problem?

    Read the article

  • How to detect checkbox state in Javascript IE7

    - by justinl
    I have a simple checkbox on my website. Everytime you check and uncheck it, it shows an alert as to what the state is. This works flawlessly in FF, Chrome, and IE8. However, when I run this in IE7, no matter if the check is on or off, it always alerts "off". It's like IE7 can't detect that the checkbox is checked. Does anyone have an idea of how to fix this or work around it? I basically need to toggle the visibility of some content based on a checkbox, but IE7 is being difficult. Thanks! Here is my code that I'm using: function showHideTimeDropdown() { if (document.getElementById("input_checkbox").checked == true){ alert("on"); } else{ alert("off"); } }

    Read the article

  • Z-Index and javascript for rollover

    - by Raffaele
    I have a container (div) with a background image. In this div there is a menu - a horizontal list. What I need is to insert an image onMouseOver, positioning it absolutely, and showing it behind the text (of course!) AND on top of the div's background image. I also use jQuery, but I think this doesn't matter. The problem can be viewed online. Go to http://www.w3schools.com/css/tryit.asp?filename=trycss_zindex and paste the following text <html> <head> <style type="text/css"> img { top: 0; left: 0; position:absolute; z-index:-1; } #main { color: red; margin: 30px; padding: 20px; width: 700px; min-height: 400px; z-index: -2; background-image: url("http://www.google.com/logos/mother10-hp.gif"); background-repeat: no-repeat; } </style> </head> <body> <div id="main"> <h1>Z-Index question:</h1> <img src="w3css.gif" width="100" height="140" /> <p>How can we place the green pic between the text and the div#main?</p> <p>I need the green gif to appear</p> <ol> <li>On top of #main's background image</li> <li>Behind the text</li> </ol> </div> </body> </html>

    Read the article

  • How to disable scrollbars with JavaScript?

    - by Flupkear
    I need to lock the browser scrollbars when I show a div that represent a modal window in Internet Explorer 7 only. Googling I found that I can use document.body.style.overflow='hidden' but this doesn't work for IE7. I also tried with document.body.scroll="no" which works but only after I mouse over the scrollbar :-S Does anybody knows a better aproach? Thansks

    Read the article

  • Javascript Square bracket notation for global variables

    - by Yousuf Haider
    I ran into an interesting issue the other day and was wondering if someone could shed light on why this is happening. Here is what I am doing (for the purposes of this example I have dumbed down the example somewhat): I am creating a globally scoped variable using the square bracket notation and assigning it a value. Later I declare a var with the same name as the one I just created above. Note I am not assigning a value. Since this is a redeclaration of the same variable the old value should not be overriden as described here: http://www.w3schools.com/js/js_variables.asp //create global variable with square bracket notation window['y'] = 'old'; //redeclaration of the same variable var y; if (!y) y = 'new'; alert(y); //shows New instead of Old The problem is that the old value actually does get overriden and in the above eg. the alert shows 'new' instead of 'old'. Why ? I guess another way to state my question is how is the above code different in terms of semantics from the code below: //create global variable var y = 'old'; //redeclaration of the same variable var y; if (!y) y = 'new'; alert(y); //shows New instead of Old

    Read the article

< Previous Page | 150 151 152 153 154 155 156 157 158 159 160 161  | Next Page >