15,117 Topics

Member Avatar for
Member Avatar for faysal.ishtiaq_1

This code snippet can be used to get the current time in 12 hour format using JS

0
2K
Member Avatar for MasterHacker110

I am trying to let my website create a cookie on the user's system so that it will know if the user is logged in or out. But it doesnt seem to work. Here is my javascript cookie code: function createCookies() { // Creates a cookie on the user's computer …

Member Avatar for MasterHacker110
0
264
Member Avatar for Shari_1

Hello. I'm trying to print out some information using JSon. However, I'm not getting the numbers I expect. Can anyone see what I'm doing wrong? Let me tell you about my code. Price is supposed to hold the price for a product. Variable out is my output. The function getBill …

Member Avatar for Shari_1
0
215
Member Avatar for jonsan32

I'm trying to get this script to work. I want an image displayed based on the current holidays throughout the year. Any help would be great. Thanks a ton! <script type="text/javascript"> function H(){ var s=new Date(); var isHalloween= (s.getMonth()==9 && s.getDate()>26) || (s.getMonth()==10 && s.getDate()<3); var isXmas= (s.getMonth()==9 && s.getDate()>26) …

Member Avatar for jonsan32
0
281
Member Avatar for MasterHacker110

I am making a website that will keep online records of the users gaming data. But my problem comes in here: The user can create an account, if they dont have one, or login to an existing one. <a href="login.aspx">Login</a>&nbsp;&nbsp;&nbsp;<a href="" id="loginstate"></a> Now my link tag with the id "loginstate" …

Member Avatar for JorgeM
0
252
Member Avatar for bobgodwin

I've been looking for the answer to this problem for a while. I'm using nyroModal in gallery to show php pages. but the popup doesn't resize the first time it loads. I use this link: <a href="galtest.php" class="nyroModal cursor" rel="gal"><img src="img/gallery/thumbs/OldMiami.jpg" class="Tips1" title="In the Backyard Of The Old Miami (Detroit, …

Member Avatar for JavaScprit
0
491
Member Avatar for jelly46

Hello I have got a small piece of code from thefacebook developers page. It does not work inIE, it sends back an error, I have cleared the caching and loggin into facebook and nothing. Here is the code: <a href="#" id="fb-btn-2013" onclick=" window.open( 'https://www.facebook.com/sharer/sharer.php?u='+encodeURIComponent(location.href), 'facebook-share-dialog', 'width=1028,height=768'); return false;"><img src="../../Content/Images/facebook-button.png" alt="Share …

Member Avatar for jelly46
0
320
Member Avatar for rrocket

I have been trying to use [code=javascript]<script language="javascript" type="text/javascript"> function check_length() { var x = document.getElementById("tbDescription").value; alert(x); } </script>[/code] to get the value of this text box [code=asp]<asp:TextBox ID="tbDescription" runat="server" Height="78px" TextMode="MultiLine" MaxLength="10" Width="363px" ValidationGroup="quickQuote" onkeypress="check_length()" CausesValidation="true"></asp:TextBox> <asp:RequiredFieldValidator ID="rfvDescription" runat="server" ControlToValidate="tbDescription" Display="none" ErrorMessage="You must give a description of your shipment." …

Member Avatar for ranadheer_1
0
2K
Member Avatar for Burhan_1

0 down vote favorite In new google map there are several travel mode like driving, bicycling, walking and transit but they also added fly mode also. I can choose fly mode in new google map but i cant get fly travel mode in google maps v3 api. I want to …

Member Avatar for Burhan_1
0
947
Member Avatar for gabby.hunter.50

I am completely new to JavaScript. I do not understand it, even after reading numerous sources of information about it. I am stumpt on a question and really need help. Everything JavaScript is so unfamiliar. Here is what I need: Write a custom error handling JavaScriptâ„¢ function called processErrors that …

Member Avatar for LastMitch
0
263
Member Avatar for tastybrownies

Hello everyone, I am trying to write a website that allows a user to input a stock symbol(ie. APPL, GOOG) and get basic information back. I have a html/js file and how it looks is fine but I am running into trouble when doing an HTTP GET using the XMLHttpRequest. …

Member Avatar for LastMitch
0
232
Member Avatar for Falimonda

I am interested in using the webgl-globe tool which I have downloaded [Here](https://github.com/dataarts/webgl-globe). I have basic experience using CSS and HTML but I am unsure of which files from the repository are necessary for using the platform and how they should be included into one webpage as each folder seems …

Member Avatar for LastMitch
0
166
Member Avatar for brianjoe

Hi all Im having a struggle here. I know very basic Jquery, and are reading up on on the YouTube API, but I cant seem to find how to do this. I downloaded a script for a custom YouTube player, and everything is good. I modified it to my needs. …

Member Avatar for LastMitch
0
399
Member Avatar for gahhon

public static void Confirmation(string message) { // Cleans the message to allow single quotation marks string cleanMessage = message.Replace("'", "\'"); string script = "<script type=\"text/javascript\">var confirmation=this.document.getElementById('hfConfirmation'); if(confirm('" + cleanMessage + "'))confirmation.value='Yes' else return confirmation.value='No';</script>"; // Gets the executing web page Page page = HttpContext.Current.CurrentHandler as Page; // Checks if the …

Member Avatar for gahhon
0
321
Member Avatar for garyjuano

guys this is my text box a. <input type="text" id="val" value="1,23|20,70|40,100|64,120" > my question is how can i output something like this.? var chart = [[1,23 ],[20,70],[40,100],[64,120]]; any idea? your help would be greatly appreciated thanx in advance.

Member Avatar for minitauros
0
144
Member Avatar for NextCom

I'm using jQuery contains to show records in a page that contains information that matches a search field. This functions works very well, a bit too good actually... The challenge is that it also searches for matching words in SELECT elements that is inside the table column. $(this).find('td:nth-child(2)').each(function () { …

Member Avatar for paulkd
0
449
Member Avatar for trishfernan

Hi, I am delevloping an ebay website. I need to develop the following as explained in the attachment. Just need some tutorial to learn and start developing the system. Please see link [Click Here](http://i1190.photobucket.com/albums/z452/trishfernan/Explanation-iconchange_zps5f958690.png)

Member Avatar for minitauros
0
133
Member Avatar for abhi10kumar

I am using marquee.js for moving images; Its working fine on local server and on static page. But when I include into my .php page (using loop) it is hanging and giving below error **A script on this page may be busy, or it may have stopped responding. You can …

Member Avatar for LastMitch
0
182
Member Avatar for pwolf

I am working towards the goal of a social site, however, being a beginner, I have many questions I need to answer before getting anywhere! One of these is in regards to embedable scripts/ web apps/ widgets. I would like to allow the users of the site to upload web …

Member Avatar for pwolf
0
534
Member Avatar for riahc3

Hello How can I do something like this: <script type="text/javascript"> var one="hi "; var three="there"; <?php echo ConcatTwoStrings(?>one<?php,?>two<?php);?>; </script> That should produce "Hi there". Yes, I know there is concat Javascript functions; Thats not the point as I was simply showing a easy example. How can I do the above? …

Member Avatar for poosapatisuresh
0
12K
Member Avatar for vishalonne

Hello All I am trying to just test a simple javascript code. Following Code is working very fine in FF-14, Google Chrome - 21, Safari - 3.2 <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <script type="text/javascript" src="sha512.js"></script> <script type="text/javascript"> function formhash(form, password) { // Create a new element input, …

Member Avatar for VIDASOCIALfairfield
-1
364
Member Avatar for Evil_genius82

Hi All, I have a few questions regarding Ajax and Json if anyone could help clear up for me. I am designing a mobile application (as a small project) which will send continious live data to a php file which will then forward this to be stored in a MySQL …

Member Avatar for allualtaf
1
156
Member Avatar for Dennis73

In some web sites, ebay and Amazon specifically, they have several thumbnails below a larger image. When you hover over one of the thumbnails the corresponding larger image is displayed in the space above. This effect would be perfect for a site that I am working on right now. Can …

Member Avatar for number
0
1K
Member Avatar for riahc3

Hello I want to have a drop down menu showing small thumbnail pictures and text in a "smartphone like" grid. What can I use to accomplish this? Thank you

Member Avatar for riahc3
0
810
Member Avatar for Burhan_1

I created a script which shows result on a new window popup window.open('http://google.com','_blank','2','width='+screen.width+',height=50,left=0,top=0,toolbar=0,location=0,menubar=0'); window.open('http://yahoo.com', '_blank','3','width='+screen.width+',height=50,left=0,top=200'); First popup open easily but others are blocked in browser, i want to disable popup blocker when my domain load or when unblock popup when my domain loads. I am creating a script like farecompare …

Member Avatar for dany12
-1
393
Member Avatar for robert_anderson

I would like to connect Softphones with each other. I would like to check <B>what phone calls are being in progress</B> in the system, more precisely, between the actual phones. If it is possible, I would like a solution for the case when any of the participants calls the other, …

Member Avatar for LastMitch
0
421
Member Avatar for accra

Hi all, I have this ajax script that accepts only one value at a time. I want to send more than one value to mysql for processing... but am not so good with javascript, pls point me in the right way....thanks // auto select vehicle # and fleet # <script> …

Member Avatar for accra
0
406
Member Avatar for adrive

hi again, i'm wondering if it's possible to return an array from my php generated content to ajax's responseText. I tried echoing back the whole array variable but can't seem to fully receive it in javascript. somewhere in file1.php <?php $myArray = array(); $myArray['name'] = "ajax tech"; $myArray['age'] = 20; …

Member Avatar for ivan.danshin.9
0
5K
Member Avatar for littledevils326

I have an HTML table which displays records from a database. The data are stored in sql database and the records are retrieved as a JSON object and then appended to the table. Rather than loading all the data in the table, I have a button which allows the user …

Member Avatar for LastMitch
0
902
Member Avatar for NoUserNameHere

I was trying to get the basics of angular.js down by following this video: http://www.youtube.com/watch?v=i9MHigUZKEM#t=44m52s The routing in the video is outdated so I tried to fix it with by including the new required arguments like ['ngRoute']. I can't figure out why it isn't working. Am I missing addtional things …

Member Avatar for LastMitch
0
207

The End.