Search Result

Collapse
375 results in 0.0066 seconds.
Keywords
Members
Tags
javascript
  •  

  • Hatem Salem
    started a topic Undefined value returned by Ajax!

    Undefined value returned by Ajax!

    I am trying to get all Following IDs using Twitter API. Now on Load function am trying to alert the IDs array (FollowingArray ) which returned by GetFollowing.

    I've test the value of array inside the function , but it looks OK. When i try to alert it appears as undefined.

    Code:
    function Load()
    {
    	alert(GetFollowing("hatem"));
    }
    
    function GetFollowing(ScreenName)
    {
    ...
    See more | Go to post

  • Failed to get correct o/p due to wrong in if condition

    Code:
    <!DOCTYPE html>
    <html>
    <head>
    	
    	<script type="text/javascript" charset="utf-8" </script>
    	<script type="text/javascript" src="search.js" ></script>
    	<script type="text/javascript" charset="utf-8">
    		
    	function search()
            {
             var x=document.getElementById("From").selectedIndex;
    ...
    See more | Go to post
    Last edited by Dormilich; Jun 11 '12, 09:41 AM. Reason: Please use [CODE] [/CODE] tags when posting code.

  • bryan41
    started a topic JavaScript click and hover function needed

    JavaScript click and hover function needed

    Okay, So I don't want a website like this http://colorpx.com/, but the idea of how the Click and Hover function works. I can't seem to find that script they have or what it's called to look it up. But I'm sure it's very simple.

    I want to be able to click and (not release) and drag over other Div's and change the element of multiply ones without having to release the mouse button.

    Sorry for nooby question if this is something...
    See more | Go to post

  • Grimmerson
    started a topic Firefox / Chrome issues

    Firefox / Chrome issues

    Hi guys

    I have a piece of code that is working on internet explorer for pc but not mac and not on firefox or chrome.

    Do you have any suggestions please.

    Code:
    <script>
    function resizeIframe(main) {
    if(self==parent) return false; /* Checks that page is in iframe. */
    else if(document.getElementById&&document.all) /* Sniffs for IE5+.*/
    
    var FramePageHeight
    ...
    See more | Go to post

  • My javascript functions do not work in Python?

    Code:
    #!C:/Python27/python.exe
    
    import cgi
    form = cgi.FieldStorage()
    
    a=int(form.getvalue('a','0'),0)
    b=int(form.getvalue('b','0'),0)
    
    
    print """Content-type: text/html
    
    <html>
      <head>
        <title>Greeting Page</title>
      </head>
      <b><h1>Welcome!</h1></b>
      <body>
    ...
    See more | Go to post

  • thugbuddha
    started a topic JavaScript createElement, Jquery on click

    JavaScript createElement, Jquery on click

    Hey,
    I have function where it creates img element and sets id = title,
    When i add to index.html jquery
    Code:
    $('#title').click(function() {
      alert('xx');
    });
    it doesn't work, why?


    Jscript function:

    Code:
     function showUploadedItem (source) {
      		var list = document.getElementById("image-list"),
    	  		li   = document.createElement("li"),
    ...
    See more | Go to post

  • how to add image based on if condition in JavaScript

    Hi All,
    i am asking this question for 2nd time, but still didn't get the reply. anyone pls help me how to insert image based on if condition in javascript. this is my code:
    Code:
    if(desc == "Cloudy")
    {
    alert("cloudy");        $("input#desc").val(response.getElementsByTagName("desc").item(0).firstChild?response.getElementsByTagName("desc").item(0).firstChild.data : "");
    ...
    See more | Go to post
    Last edited by Dormilich; Apr 25 '12, 12:35 PM. Reason: Please use [CODE] [/CODE] tags when posting code.

  • pralaya
    started a topic Prompting for a password only once per session

    Prompting for a password only once per session

    hello!

    I have a blog I would love to put a password on. I've put a simple one on it but it asks me to input a password every reload which is quite annoying.

    Is there any way to make it so that it prompts only once per visit?

    I've tried to do this myself but I have limited knowledge of how Javascript works and I've gotten nowhere. Also, it's not supposed to be a super serious page or anything, I'm aware...
    See more | Go to post

  • realzahed
    started a topic validate input field

    validate input field

    Hi, I want to validate the input field 'putime' in the form because even if the 'putime' input box is empty the result is calculated and nightSurcharges is also added to the cost. So I want to validate 'putime' when it is empty.
    Code:
    function TaxiFare() {
    // calculates taxi fare based upon miles travelled
    // and the hour of the day in military time (0-23).
    
    var baseFare = 14;
    var costPerMile =
    ...
    See more | Go to post

  • narinas
    started a topic checking time overlap

    checking time overlap

    Hello

    I have checked the overlapping of time by taking the values into an array and sorting them.
    here im unable to insert data into cells when the cells are empty!

    my code:
    Code:
    <script>
    function compare_row_time()
    {
      var all_times= new Array();
      var flag_check=false;
      var count_times=0;
      for(var i=0;i<mygrid.getRowsNum();i++)
      {
    ...
    See more | Go to post

  • dottiel
    started a topic open new sized window for wav file

    open new sized window for wav file

    I need to open a wav file in a new small sized window while keeping the current page open. However, currently the javascript I pasted in is opening a new page AND a popup small page and playing the wav file in both simultaneously.

    This is the javascript in the head section:
    Code:
    <SCRIPT TYPE="text/javascript">
    function popup(mylink, windowname)
    {
    if (! window.focus)return true;
    ...
    See more | Go to post

  • themightystef
    started a topic function output as form value

    function output as form value

    hi,

    i've been looking for the right answer but can't seem to find it, so I figured i'd give this a try.

    I'm trying to make a website where visitors can input the quantity of a certain product they want, then press a button to have a function calculate the total price of the selected products. so far I've ovly been able to get this final value in an alert box, but what I'm trying to do is to have the final price written...
    See more | Go to post

  • How to have 2 decimal places on a price calculator

    I have a price calculator, and I need to have it contain 2 decimal places when generating a quote. I tried using toFixed(2) (as you can see below) but I am not sure if I did it right. Can you help? Thanks

    Code:
    <script type="text/javascript">
    var roomobjs = [];
    var roomobj = {};
    
    roomobj.name = "Bathroom";
    roomobj.clean = 15;
    roomobj.moveFurniture = 10;
    roomobj.preVacuum =
    ...
    See more | Go to post
    Last edited by Dormilich; Apr 2 '12, 07:16 PM. Reason: Please use [CODE] [/CODE] tags when posting code.

  • Setting width of <td> elements when creating table dynamically in JavaScript

    I need to create tables dynamically in Javascript, with column widths of 20%, 55%, 15%, 10%.
    I can't figure out how to make this work.
    I created css classes for each of the four columns.
    My css style sheet which, in part, looks like:

    Code:
    table{
    font-family: Arial;
    text-align: left;
    border-collapse:collapse;
    table-layout:fixed;
    }
    .col1{width:20%;}
    }
    .col2{width:55%;}
    ...
    See more | Go to post
    Last edited by Meetee; Apr 2 '12, 04:50 AM.

  • How to get each rows radio button value from data list?

    I want to put some questions with a data list view with multiple choice radio button so how to get each question answer or checked radio button value from list?
    i have this asp code:
    Code:
    <asp:DataList ID="DataList1" runat="server" BackColor="White"
                BorderColor="#CC9966" BorderStyle="None" BorderWidth="1px" CellPadding="4" 
                DataKeyField="Qno"
    ...
    See more | Go to post
Working...