Search Result

Collapse
16 results in 0.0020 seconds.
Keywords
Members
Tags
js
  •  

  • have js date function to get today's date, need tomorrow's date

    Hello i am in need of some help with this JS function. I am using a script which gets Today's date, and i am looking to get Tomorrow's date. I need some help. I will show you what i have and please let me know what i need to change to get the date of Tomorrow.

    Thank you very much for your time.

    Code:
    <SCRIPT LANGUAGE="JavaScript">
    
    
    var now = new Date();
     
    
    var days
    ...
    See more | Go to post

  • Collapsible Panel that increases it's id every time in my loop

    I have Collapsible Panel and this is the header of it,
    Code:
    <div id="CollapsiblePanel1" class="CollapsiblePanel">
         <div class="CollapsiblePanelTab" tabindex="0">Comments</div>
         <div class="CollapsiblePanelContent">
           Content 
         </div>
    <div>
    now I get the content from my DB and every time...
    See more | Go to post

  • how i can open my php file as pop up window through php header function.

    Dear,
    I am using show my payment history window as follows..

    Code:
    <form name="myform" method="post" action="payhistory.php">
    
    <input name="pay_his" type="submit" class="memberhistory" value="Payment history" onclick="myform.target='POPUPW'; POPUPW = window.open('about:blank','POPUPW','width=550,height=400','scrollbars = yes','title= ' );"
    ...
    See more | Go to post
    Last edited by Stewart Ross; Feb 1 '12, 08:25 PM. Reason: Code tags added

  • How to set the selected field of combo box within the view

    I have two options in a combo box.

    Code:
    <select id="selLang">
            <option value="/en" >english</option>
            <option value="/fr" >french</option>
        </select>
    When i choose the second option the page is refreshed and the selected option isn't displayed in the top of the combo box (i mean, as the selected item.)it's funny coz the page...
    See more | Go to post

  • [jQuery] Can I animate a Floating element that should get moved to next line?

    I have a thought. Consider the following:
    Code:
    <script>
    $(function(){
     $("#b").click(function(){
      $("div").animate({width: "200px"},1000);
      });
     });
    </script>
    
    <div style="width:225px;">
     <button id="b">C</button>
     <div style="float:left;width:100px;">Test</div>
     <div
    ...
    See more | Go to post

  • how to put an image over a value using javascript

    i'm working on a minesweeper game and i don't know how to replace an image (=any button was clicked)by the value suppose to be under it.
    (i have already all the functionality of bombs and neighbors and 10*10 images of buttons - but i can display this or this- not they both at once and this is another question - how to put the numbers and bombs under the button images...)
    i'll be glad to get some help,thanks in advance.
    See more | Go to post

  • Editing the script to not start if div height is not bigger than in script

    Hi,

    I couldn't fit this in a title, but here is what I need. I have a script that looks at height of a div and if it is more than 80 the script adds "More" button at the end so div initially displays with height of 80, but when someone clicks "More" button it shows all div. After they expand div there is a "Less" button to make it 80px high again. When div is not expanded there is [...] at the end of a text...
    See more | Go to post
    Last edited by Niheel; Jun 26 '11, 03:59 PM. Reason: Use bold sparingly easier to read for people helping you.

  • larachy
    started a topic cURL, JavaScript and Php
    in PHP

    cURL, JavaScript and Php

    I’ve developed a scraper using cURL and PHP what can scrape from different websites very well. But, if a website uses JavaScript POST operation, cURL code doesn’t work. Do you have suggestion to solve this problem?
    Thank you in advance.


    A sample code is attached as follows:
    Code:
    <?php
    
    $postUrl = 'https://tigerwoodsonline.ea.com/users/login';
    $postData = array(
       'login' => 'zaque.rasel@yahoo.com',
    ...
    See more | Go to post

  • Is there any possible way to retrieve the expire time left for a cookie?

    As I wrote before,
    Is there any possible way to return the expiration time of a pefeied cookie by JavaScript?

    What I read so far:
    1) Create another cookie to hold the expire time.
    -I don't want to use that because i do not intend to do it, simple enough.

    2) I don't really understand this area but I read that there is a way to play with the header, and maybe get the expire time.
    By using the...
    See more | Go to post

  • Inbar Rotem
    started a topic js changes to DOM

    js changes to DOM

    Hi,
    I am looking for a way to get all the urls from a web page (images, forms , js etc..). I am having trouble extracting the urls from the js itself.
    Therefore, I am looking for a way to get the js's changes to the DOM and know which js did it.
    So far I was unsuccessful.
    Any ideas?

    Inbar.
    See more | Go to post

  • agam
    started a topic JS oop call a function whithin another function

    JS oop call a function whithin another function

    Here is the example code:
    Code:
    function foo() {
    
    	this.alert1 = function()
                alert("Hello");
    	};
    	
    	this.alert2 = function(str){
    		//How can I call alert1() from here??
                    !!!
    	};
    }
    (Then I do: var foo = new foo();->foo.alert2 - I want it to show alert of Hello)

    Any solutions?(Ques tion in the code)
    See more | Go to post

  • Is there a way to limit the max selected options in <select>

    Is there a way to select lets say max selected options from a <select> tag...
    for example
    I have a select with 150 options... but I want to select maximum 30...
    I've tried with js onclick and onchange for select but the event is trigged only when I release the mouse button
    See more | Go to post

  • NetWorker
    started a topic Loading images in the background

    Loading images in the background

    Hello everyone ;)

    I would like to load some images using JS.

    My code:
    Code:
    var img=new Image();
    img.onload = function() {f1()};
    img.onerror = function() {f2()};
    img.src='http://example.com/image.gif';
    sett = setTimeout(function() {f3()}, 100000);
    
    //f3 contains not interesting code and:
    img = null;
    clearTimeout(sett);
    Simply task,...
    See more | Go to post
    Last edited by NetWorker; Aug 20 '10, 08:31 PM. Reason: Missing a letter

  • Thew
    started a topic Spoiler code doesnt work

    Spoiler code doesnt work

    Code:
    
    <script language="javascript" type="text/javascript">
    
    function spoilershow(){
    	
    	document.getElementById("spoiler").style.visibility='visible';
    	document.getElementById("show").value='close';
    	document.getElementById("show").onclick='spoilerhide()';
    }
    
    function spoilerhide(){
    
    	document.getElementById("spoiler").style.visibility='none';
    ...
    See more | Go to post
    Last edited by Thew; Aug 18 '10, 07:47 PM. Reason: translate from my language(dutch) to english

  • Kong Chun Ho
    started a topic XMLHttpRequest function not work

    XMLHttpRequest function not work

    Hi, i have created a XMLHttpRequest function, but it didn't work, this is my code
    Code:
    function CheckAccount (acc) {
    CreateXMLHttpRequest();
      if (ready == 1) {
        if (!xmlHttp) {
        alert('Please upgrade your browser');
        }else{
        var content = "AJAXQueryAccount=" + acc;
    	alert('set content!');
        xmlHttp.onreadystatechange=CatchResult;
    	alert('set ors!');
    ...
    See more | Go to post
Working...