15,127 Topics
| |
[CODE] <script src="http://code.jquery.com/jquery-1.7.1.min.js" type="text/javascript"></script> <script type="text/javascript"> $(document).ready(function() { $('#navlist li a').click(function(){ $('#navlist .current').removeClass('current'); $(this).addClass('current'); return false; }); }); </script> <ul id="navlist"> <li><a href="?p=home" class="current">Home</a></li> <li><a href="?p=product">Our Products</a></li> <li><a href="?p=enquiry">Enquiry</a></li> <li><a href="?p=contact">Contact Us</a></li> <li><a href="?p=about">About Us</a></li> </ul> <div id="content"> <?php require_once('config.php'); $default = 'home'; $page = isset($_GET['p']) ? $_GET['p'] : $default; … | |
Hello All. To admins - i wasnt exactly sure where to put this forum post, so please move if needed. Im not sure exactly what scripting language to use in this instance, and on top of that, im not really familiar with any (a tiny bit of VBSCRIPT, and tiny … | |
Hi all, I'm trying to get the caret position of an iframe. I tried several ways, based on this example: [url]http://stackoverflow.com/questions/8664504/designmode-iframe-get-cursor-position[/url] Anyway I try I allways get the start position of the selected text added with 19. I'm not getting why? | |
Hey, My following code doesnt seem to be working, it doesnt change the onclick function when you click the image... can someone please help me? Jquery is includes at the top of my page... [CODE]<script type="text/javascript"> function addfav(id){ var div = '#fav_'+id; $(div).attr("src","images/star.png"); $(div).unbind('click'); $(div).click(function() { removefav(id); return false; console.log('did … | |
i did a Display class to call Client class : package Details; public class Display{ public static void main (String[] args) { details d = new details(); \\ HERE IT CANNOT FIND SYMBOL d.details(); } } and the output is : error: cannot find symbol CAN SOMEONE HELP ME? | |
hello folks, just a small help in urgent pls. My requirement is that I have to disable user input like clicking menu links when some functionality in the website is going on . in better words, when user Upload a large file, it will show a progress bar, until this … | |
Hi hope someone can can help im having a problem with how ripple is dealing with for loops when emulating an android app using html5 css jquery and jqtouch simple loop [CODE] var len = 1; for (i = 0; i <len; i++){ alert('foo'); } [/CODE] run it through chrome … | |
I know this is a basic question. I asked the same question a while ago, even then thinking it was a simple question. The answer I got seemed to be what I already know and was obvious.. however, when I tried it, it did not work, so I just worked … | |
Excuse me for the very cryptic name but this is the weirdest (although very small) problem I've ever encountered. I have a variable in JavaScript which I want to initialize to the int value of 5 to be later incremented in a function. Everything works perfectly until instead of declaring … | |
Hey guys, Name input value should be entered as shown on credit card eg. 'John P Smith'. I'm trying to prevent 'Aaaaa B Ccccccc' being sent to the sever. Any suggestions appreciated. I'm pritty sure the var rep=regex is causing the script to hang on the first if it acctualy … | |
Hello Good day everyone, anyone can help me with error " Undefined index: is_ajax" I've encountered it. Im new in AJAX and im trying to use it on my login page. This is the code for my main.php [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta … | |
So I have a script I'm working on that pulls multiple comments from a database, then puts it in a jquery piece that pulls the data from the arrays I created in my MYSQL Select. [CODE]function get_posts($start = 0, $number_of_posts = 5) { $posts = array(); $comments = array(); $query … | |
Hello, First let me start of by saying that I am new to javascript and ajax, but I thing I need them to accomplish what I am trying to do and here it is. I have there search forms, 1 search owner, 2 search contractor, 3 search properity. Then I … | |
hello! i am working on a Asp.net project using C#, now i want to connect mssql server 2008 using JS or AJAX , i am very new with JS so i have no idea where to start .can anyone help me in this . Regards M.Waqas Aslam | |
Hello all, I have a function in which onclick one window opens and there is logout option on the parent page. when I log out i want the child window to close as well. My native code is in Java and I need something in javascript. Plz help | |
I was given this assignment: Create an html form. Include at least two text boxes, at least one of which must be numeric, a set of at least three radio buttons, a submit button and a reset button. Upload to your account. Make sure the permissions are correct. Name it … | |
Hi all i am new to Node.js i followed the tutorial and typed the following [CODE]var sys = require("util"), http = require("http"); http.createServer(function(request, response) { response.sendHeader(200, {"Content-Type": "text/html"}); response.write("Hello World!"); response.close(); }).listen(8080); sys.puts("Server running at http://localhost:1331/");[/CODE] its running fine while i run it through cmd but when i open my … | |
Hello everyone, I am having trouble with getting jquery mobile not cache pages on the device. Does anyone know of a way to do this, I am COMPLETELY lost. | |
Dear all, Link not showing as well not working in a tag with tinybox javascript ... Pls tell me solution ... here the code <a style="cursor:pointer;" target="_self" rel="modal" onClick="return addhospital();"> <img src="images/anh.png" alt="<?php echo $keyword; ?>"/></a> <script type="text/javascript"> function addhospital() { TINY.box.show({iframe:'addhospital.php?action=addform',boxid:'frameless',width:620,height:560,fixed:false,maskid:'bluemask',maskopacity:40,closejs:function(){closeJS()}} ) } </script> | |
Hi, sorry for reposting my question, because I wrong place at php thread before.. this is my website [url]www.byouinternational.com[/url] That website is a website that I make with full ajax programming.. I feel my website is quite long time loading the ajax content.. What do you think? Is it slow? … | |
Hey everyone. the following are my jquery coding.i maked the code for user onclick the schedule date display schedule.what is the error for following code.onlick no display event. plz help me. correct the code. $(document).ready(function(){ $(".calendar").click(function() { if ($(this).attr('days')) { $.ajax({ url: $("#url_view_schedule").val(), data: "personalId="+$("#personal_id").val()+"&day="+$(this).attr("days"), dataType: "json", success: function(list) { … | |
Hi all, Iam working on Event Calendar and events are populate from Database inside php Calendar Control now i have to display the details of events on mouse over of selected date and pageloading time dispaly current event . any Idea or code help is apperciated. which appraoch i have … | |
hi I'm having serious problems with this code. It all started when I tried to use functions. The function easy() works fine when the page loads but the button has stopped calling the check() function. could it be because I have that stored inside another function? I tried placing outside … | |
What I mean is letting people see the page before linking so they know what's going to be on that page. Picture a small window taking a look at a page before you open it. | |
Hello i am quite new to jQuery. I am trying to insert search results in to page without reloading it, but unsuccessful. Here is the code i am using: [CODE] $(document).ready(function(){ $("a").click(function(event){ $.get( "search.php", { query: "intel" }, function(data) { $('#content').html(data); } ); }); });[/CODE] i am using example form … | |
I am trying to create a number of panels that can expand and collapse like an accordion, but more than one can be open at one time. There's an image of an arrow that, when clicked, expands or contracts the panel. Each image of the said arrow has its own … | |
Simple code for creating Password Strength program using JQuery Functionality in a Registration Form | |
Sorry if the title of this thread doesn't make sense - I didn't know what to write :) I am using jQuery form validation and one of the rules is to check for a valid url. The field isn't required so am just validating formatting. This all works fine but … | |
Can anyone help me with "adapt.js" ([url]http://adapt.960.gs/[/url]) to set it up to include 2 css files instead of just 1. For example I need it to figure out I want to include /css/960.css, then i also want it to include /css/<= $pagename ?>/960.css Here is my current code (not included … | |
I hate websites that timeout and don't let you know about it this script pops up a message when you timeout and allows you to re-login in place |
The End.