Unusual situation. I have a client, let's call them "BuyNow." They would like for every instance of their name throughout the copy of their site to be stylized like "BuyNow," where the second half of their name is in bold.
I'd really hate to spend a day adding <strong> tags to all the copy. Is there a good way to do this using jQuery?
...
I'm about set up my first eCommerce site. I was hoping you could recommend some shopping cart software. What are the perks of using pre-built software rather than developing some simple solution catered to my needs. Also, are there pre-written Terms and conditions for sites? Or templates that outline what aspects need to be addressed? Wh...
Right now, I have the following:
function jQueryToString( jQueryObject )
{
return $('<div>').append(jQueryObject.clone()).remove().html();
}
Which works swimmingly in firefox, opera, chrome, and safari. However, it breaks in IE. I need to convert an XML Document object into a string, so what are my options?
...
I was wondering if it would be more efficient to use document.getElementById() n number of times or to use document.getElementsByTagName() and loop through the result looking for the specific Element ids?
...
Hi There,
I am working on a two-level menu like the Dynamic Drive examples on this page. The goal is to show a subnav layer below the main nav onmouseover, reverting to each page's default subnav layer after a timed interval. It works, except for a big problem: I am using sIFR on the main navigation items (<a>s inside of <li>s). The scr...
Webpage A is embedded in an iframe inside of webpage B. A and B are on two different domains and therefore the same origin policy prevents A from accessing properties of B like so;
location = window.top.location.href // emits a "Permission denied" error
Is there any other way for A to get B's url?
...
Look
Wow!
How can the webpage know I'm using firebug?
BTW I couldn't find out how to show the translucent add banner.
...
If you look at some google pages (ie. mail.google.com/tasks) on the iphone they look a lot like native iphone apps. Does anyone know how they got it to mimic the look of the native apps and is there a resource that describes how to do it?
Also does one have access to any of the iphone hardware data ( ie. accelerometer data, gps informa...
I'm still new to Jquery so bare with me.
I am trying to create a go-moku game using jquery,php, and mysql database.
I have a ajax function that updates the a board every second if needed.
var turnCount = -1;
setInterval(function(){
$.get('includes/boardControl.php',{turn: turnCount }, function(data){
if(data != "")
{ $("#board").h...
I'm trying to write a javascript function that calculates the time since Oct 11th, 1910 so I can throw it into a timer for a project I'm working on. I get that javascript's milliseconds works from epoc, but I don't and can't find a way to get the milliseconds since a date earlier than 01.01.1970
Does anyone have any loose code that can ...
I have written a game app for Facebook. The app is not AJAX optimized, so it makes a lot of round trips to the server. I have discovered that every time the app hits the server while using Firefox, the CPU usage goes up to 100% (this does not appear to be a problem in IE8). Since the app can hit the server several times a second, this is...
I am logging every visit to my website and determining if the visitor is human is important. I have searched the web and found many interesting ideas on how to detect if the visitor is human.
if the visitor is logged in and passed captcha
detecting mouse events
Detecting if the user has a browser [user agent]
detecting mouse clicks [...
Hi, I've been working on a tool to transcribe recordings of speech with Javascript. Basically I'm hooking up key events to play, pause, and loop a file read in with the audio tag.
There are a number of advanced existing desktop apps for doing this sort of thing (such as Transcriber -- here's a screenshot). Most transcription tools have ...
I am trying to detect is a visitor is human or not. I just got an idea but not sure if this will work or not. But if I can store a cookie on the persons browser and retrieve it when they are browsing my site. If I successfully retrieve the cookie can this be a good technique to detect bots and spiders?
...
I have been developing an app to use jQuery's jqGrid plugin, and I thought I had it all wrapped up until I tried to view the grid in IE. In IE, the grid appears with a much larger height in the .ui-jqgrid-view div, but the data itself stays at a smaller size and displays at the bottom of the container div (.ui-jqgrid-view). I need to g...
Is there a way for a page to go back a page onload using javascript or php?
...
Hi,
I am using PrettyPhoto to display a contact form. I wanted the 'close' button to be inline with the other text, and I couldn't get it quite right through the css, is there a way to make the word 'close' shut down the lightbox, the way I have it laid out currently?
http://gherkin.co.nz/gg/emailtest.php
Click on 'send us an email' ...
Hi This is a simple question i guess:
My requirement is in the Text box whenever user enters mail, the domain name should be appended automatically.Also the name entered should not allow special characters except '.' '_' in reality. Also the user should not be allowed to add any other domain except which is specified in the property file...
I am using YUI DataTable in my web application. While my DataTable is fetching the data if I close that and move on to other DataTable I keep getting the message 'Stop running this Script?' confirm message. I want to avoid this message and I want to stop the script from running as soon as I close the DataTable. Please give your suggestio...
Hello,
I want to make some UI improvements to a page I am developing. Specifically, I need to add another drop down menu to allow the user to filter results.
This is my current code:
HTML file:
<select name="test_id" onchange="showGrid(this.name, this.value, 'gettestgrid')">
<option selected>Select a test--></option>
<option value=1>T...