15,698 Topics

Member Avatar for
Member Avatar for JySysAdmin

I am looking at http://www.w3schools.com/jsref/jsref_replace.asp and the specific example at: http://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_replace3 var str="Mr Blue has a blue house and a blue car"; var n=str.replace(/blue/gi, "red"); And the result of N would be: Mr red has a red house and a red car I want the result to be: Mr Red …

Member Avatar for pritaeas
0
236
Member Avatar for B0716L

I was wondering if there was a way to make a "remember me" button for a login form. I am working on a javascript only login box, that is pretty secure, but I just need to know how to make that remember me checkbox! Please help! Here is the current …

Member Avatar for pritaeas
0
1K
Member Avatar for Martin C++

Hello, I have a div that contains small posts, it grows automatically. When size is too big then the scrollbar apepars with CSS overflow property. What I want is that when more data is added then the div is automaticall scrolled down to it BUT when user decides to scroll …

Member Avatar for Martin C++
0
4K
Member Avatar for l.worboyz

Basically i have literally just started learning Java Script and i was seeking some help as to how i could repeatedly display the character "X" any given number of times using a function. Here is what i have so far: function makex(8) { var resultStr = ""; for (var xcount …

Member Avatar for stultuske
0
292
Member Avatar for silent lover

how to get img src value without img id? (with javascript) ababababa<img src="http://example.com/blabla/bego.png">ababababa

Member Avatar for silent lover
0
207
Member Avatar for turpentyne

I have an svg object on my page, with mouseovers that call a function on the page itself (outside of the svg). This function shows/hides divs on the page by id: onmouseover="top.showit('option28')" When the page is first loaded, the divs hide/show just as they're supposed to. But I have separate …

Member Avatar for turpentyne
0
229
Member Avatar for sonicx2218

I'm currently using this code to display a video lightbox on my site. If possible, I'm looking into rendering a disqus comment system under the popup video. Is that possible? Here's the js code. var Videobox = { init: function (options) { // init default options this.options = Object.extend({ resizeDuration: …

Member Avatar for sonicx2218
0
273
Member Avatar for azapovjednik

Hello, I have a question and I thank everyone for helping me in advance. I am using Visual Studio 2010, ASP.NET and C#. I have a table in SQL server DB. Server page (news.aspx.cs) is collecting all the data from the table (`select * from news`). Using `container.Controls.Add(new LiteralControl(news.ToString()));` I …

Member Avatar for LastMitch
0
221
Member Avatar for Sean_d

I've got 5 images that I want to display one after the other with a time delay, e.g. image one displayed 0.5 seconds image two displayed 0.5 seconds image three displayed At the moment the HTML looks like this: [CODE]<div id="header"> <img id="headerImage0" src=""> <img id="headerImage1" src=""> <img id="headerImage2" src=""> …

Member Avatar for griff122
0
434
Member Avatar for still_learning

Hi guys, I am working on a webpage which holds 2 different html forms. One of them is a radio button form and the other one is a drop down menu. I also have two links on the page. I want to make it so that when someone clicks on …

Member Avatar for xdpi
0
4K
Member Avatar for logicaweb

I have a problem with jquery loading because prototype. This is script that I use: <script type="text/javascript" src="prototype.js"></script> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js"></script> ... .. .. <script language="javascript"> function show(obj,msg){ messageBox.style.top=obj.offsetTop messageBox.style.left=obj.offsetLeft+obj.offsetWidth+5 contents.innerHTML=msg+"<p>"+obj.href messageBox.style.display="block" } </script> Between "..." I have a few more jquery scripts that working without conflict with prototype.js because I …

Member Avatar for LastMitch
0
238
Member Avatar for foysal2012

I want am php page which entry the google longtitude and latitude from an google map, want just click the map and in the text box need to show the longtitude and latitude after that a submit button need to click this data will store on a database as varcar(). …

Member Avatar for diafol
0
99
Member Avatar for inheaven

I need to get data from a [site][1] programatically using [WebClient][2] in ASP.NET. [This website][3] loads data by sending an `ASP.NET Ajax` request (using `ASP.NET ScriptManager`) to the server. Try selecting an geographical state and then click show on the page. Paging operations are also performed using ASP.NET Ajax. I …

Member Avatar for LastMitch
0
410
Member Avatar for Paulxh

I am trying to change the order of the stack using z-index. as my HTML, CSS and javascript function show in the code below. The three tables are all read into the same location, with only the last table being printed on the screen, since all tables use a white …

Member Avatar for Paulxh
0
2K
Member Avatar for Martin C++

Hello, I have a small problem with my script. The ajax calls php file but it wont finsih successfully. Instead it goes to error: callback. My javascript part: function updateUserlist(){ $.ajax({ type: "POST", url: "process.php", data: {"function": "userList", "n_users": n_users}, dataType: "json", success: function(data){ console.log("Updating..."); $("#users-list ul").append("<li>"+data.text['nickname']+"</li>"); n_users = data.numUsers; …

Member Avatar for Martin C++
0
169
Member Avatar for Jollyyy100

Is it possible to merge both the 2 element below so that they work on a single page. What i mean is this should be the background of the page: http://tympanus.net/Development/AnimatedResponsiveImageGrid/index3.html and a slideout contact form can appear at the corner over the background: http://www.building58.com/examples/tabSlideOut.html Is it possible, how?

Member Avatar for Jollyyy100
0
319
Member Avatar for rsridhar420

var allchk = document.getElementsByName("contacts") what is "contacts" in above line

Member Avatar for IIM
0
138
Member Avatar for jelly46

I found this great tutorial http://bavotasan.com/2009/creating-a-jquery-mouseover-fade-effect/ Its easy to follow but i am getting stuck with the JS because i want to have more than one image on the page. Can someone assist.

Member Avatar for stultuske
0
57
Member Avatar for shrutib

Hello All, I have list of DropDownList of items fetching from database, all have values of 1,2 and 3... DropDownList1 has a selected value of 1 DropDownList2 has a selected value of 3 DropDownList3 has a selected value of 2 What I want is to swap values. It's urgent please …

Member Avatar for shrutib
0
431
Member Avatar for utchia

hi, i am have made a button, and everytime i click it it takes a value from my input box, and it subtracts it and stores it back into the input box value. but what i am trying to do is, store my value into an array or anything everything …

Member Avatar for paulkd
0
201
Member Avatar for Kert

I have an HTML page that makes a query to SQL database when clicking on button "OTSI". My problem is that after populating the table with the data, I cant sort it anymore. I am using a standard tablesorter library ([TableSorter](http://tablesorter.com/docs/)). Here is the page making the query: [page with …

Member Avatar for radhakrishna.p
0
302
Member Avatar for skdurgesh

hi my interface has spry tabbed panels each in its own form, my problem is whenever i submit data on any of the panels in a form, my page reloads with focus on the first panel(index 0). tried javascript all methods. I need to submit on my search button and …

Member Avatar for LastMitch
0
90
Member Avatar for phfilly

Hi all! I have a problem that I've been struggling with for quite sometime. In short I've successfully parsed a xml file from a string. But I can't seem to access the correct elements. The thing is I'm reading the xml file data via javascript but in the xml file …

Member Avatar for phfilly
0
4K
Member Avatar for Mrewan79

This is the message I get within the document.write output ("document.write(bodytype);") [objectHTMLSelectElement] This is my attempt to get a value from the dropdownbox; var bodytype=document.getElementById("bodytype"); document.getElementById("bodytype").value=bodytype.options[bodytype.selectedIndex].text; This is the dropdown box code that it's meant to come from; <select id="bodytype" name="bodytype"> <option>fat</option> <option>lean</option> <option>slender</option> <option>short</option> <option>tall</option> </select> It's printing what …

Member Avatar for IIM
0
144
Member Avatar for ahmedhamdy

javascript code : $("input#input_field[name=brithday]").datepicker({ dateFormat: 'dd-M-yy', showAnim: 'slide', changeMonth: true, changeYear: true, yearRange: '1990:2020' }); jsp code : <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Profile</title> <link rel="stylesheet" href="css/style.css" type="text/css"> <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.2/themes/smoothness/jquery-ui.css" /> <script src="http://code.jquery.com/jquery-1.9.1.js"></script> <script src="http://code.jquery.com/ui/1.10.2/jquery-ui.js"></script> <script type="text/javascript" src="JS/javascript.js"></script> </head> <body> <% %> <div> <div class="blackDiv"> </div> <div class="whiteDiv"> …

Member Avatar for ahmedhamdy
0
462
Member Avatar for jag157

Hi i am trying to geocode tweets to a google map i have all my code in place but it just isnt loading up my tweets its just showing the map here is my html code can anyone tell me where i am going wrong thanks <!DOCTYPE html PUBLIC "-//W3C//DTD …

Member Avatar for LastMitch
0
219
Member Avatar for chr.s

I'm trying to extract an element's children from an AJAX call, but am having difficulty isolating it. My code is as follows: function AJAXcomplete(data){ var result = $(data).find('#productDetails > *'); jQ('#productDetails').append(result); }; function getDetails(e){ e.preventDefault(); var addy = jQ(this).attr("href"); jQ('body').append('<div id="productDetails"></div>'); jQ('#productDetails').show(); $.get(addy, AJAXcomplete); }; jQ('#slides').on('click', '.slideLink', getDetails); The above …

Member Avatar for chr.s
0
244
Member Avatar for ndeniche

Hey guys. I would like to know, which js library do you prefer when designing websites that implement the parallax effect and why. Which one suits you better and why? I'm new to this effect (it took me quite i while, I know), and I'd like to know your oppinions …

Member Avatar for ndeniche
1
247
Member Avatar for Gloak

I am designing my very own first web page. It's a real estate page where some users will add open house information while others can pull the info out. The code for the database and the web is very good (after two months...) and inserting and getting data is sweet. …

Member Avatar for LastMitch
0
1K
Member Avatar for shyleshs

hi friends, I have a problem Requirement * Weekends should be disabled. * Disable past days * specific date should be disabled So I used jqueery datepicker **Registerdate is ID of the textbox** <tr> <td> <asp:Label ID="Label7" runat="server" Text="Register date : " Font-Bold="True"> </asp:Label> </td> <td> <asp:TextBox ID="Registerdate" runat="server" Width="150px"></asp:TextBox> …

Member Avatar for LastMitch
0
249

The End.