Is there any HTML formatter/tidy/beautifier out there written in JavaScript?
I have made a content editor (CMS) which has both WYSIWYG and source code views. The problem the code written by the WYSIWYG editor is normally a single line. So I would like a JavaScript that could format this into a more readable form on demand.
...
Hi ,
I have loaded a css file on server so I am having a URL with me. How can i load it in my perl code using JQuery ?
So currently I am hardcoding the css in my mason page which is missing from the page something like this
JQ.onReady('show', function(){
JQ.addStyles({styles: ["\n\n.ap_classic { border-top:1px solid #ccc;border-le...
In javascript, we have event.srcElement that gives us the element on which some event is occured. Is there any way by which we can get this object in jQuery.
Also,
function myFun(){
alert ( $(this) ); // what do this object represent? Is it what i need ?
}
...
Hi, I am currently trying to use jquery to enter a selection from a dropdown into a text box, simulate a click to select it, press return, wait for some processing and then press return again. It's quite a nasty way of getting what I need but it's the only way I can see at the moment. Here is the code:
$('#fav').change(function()
{...
Hi.. I want to compare the selected date and current date. Iam using jquery date picker. While using the following code only the date field comparison is takes place... How can i compare with month and year also... Advance thanks..
$(document).ready(function() {
var objDate = new Date();
var selectedDate = document.getE...
Hi, I'm using jQuery tools with the Tab feature and Ajax support to link to pages. My problem is that I want to change the title of the page when the tab is changed.
I can't find any references on the guide.
Thanks.
...
Is it possible to integrate the jquery in to Titanium Appcelerator and will it work properly?
Else we can't integrate the jquery in titanium appcelerator?
any one help me?
...
Hi,
i need to access custom web service based on Sharepoint 2007 with jQuery. This web service has some operations (oper_get_smt1(), oper_get_smt2() ... )
I should probably use .ajax() function. But i don't know how to correctly define URL parameter.
$.ajax({
type: "POST",
url: "http://site/_vti_bin/w...
I'm having an issue with the jquery plugin jcarousel which causes the carousel area to be moved when the browser is resized.
This happens when the carousel is set to "circular" and has already gone through each item.
The container of the carousel has a style of left: -7300px; width: 10950px;
When I resize the browser it changes to: left...
I am building a photography portfolio for a client and decided to make it a little bit more interactive. I got rid of all buttons on the site and had the user interact with the site using key strokes. My original code used:
$(document).bind('keydown', function( e ) {
but this unfortunately would not allow the user to interact with the...
Hi
Is there a way to control a scrollbar's life depending on the browser size and the 'div' size at the same time in javascript or jquery. For example, if the 'div' content is overflowing then add scrollbar to div and if the browser is resized to a higher height then remove scrollbar from div, since it's gonna be stretched with the brow...
Hi there,
First some HTML:
<div id="tmcl-request" class="tmcl-request" style="display: none">
Request:
<b> Node: </b><span id="node">33947</span>
</div>
Than some JavaScript:
$request = $('#tmcl-request');
$newrequest = $request.clone();
And now the question: I want to change the inner HTML of the <span id="node"> from the $newreq...
A few years ago Dean Edwards brought us this workaround to the document.onload problem. The IE version of the solution involved appending this snippet to the document:
<script defer src=ie_onload.js><\/script>;
Dean was also pretty adamant on the fact that this was the closest solution to perfection he could find and dismissed any sol...
hi,
i'm having some simple gui environment with a button widget (=jquery plugin)
there's a gui object which holds all widgets like:
myGui["button1"] = button1;
myGui["button2"] = button2;
what i want to do is defining a widget array like:
myGui["button"][0] = button1;
myGui["button"][1] = button2;
but i'm getting an error: myGui["...
I'm trying to dynamically add elements to an accordion. Each added element contains a form with radio buttons styled with Custom Form Elements. Here is the code I'm using to add the element to the accordion.
$("#addpage").click(function(){
$.get("addpage.php", function(data){
$(data).insertAfter(".accordion div#[id^=element]:last...
Hi,
I am trying to make some text scroll vertically using jQuery, I have been following the code example on http://www.switchonthecode.com/tutorials/using-jquery-slider-to-scroll-a-div
Please can someone guide me on how to achieve
Position the slider vertically
Make the text scroll vertically when the slider is moved up or down
E...
I have a form where I'm using Jquery to submit the form to create a preview output on the right-hand side of my screen (I have some complex inputs and want to use ruby to process them to create the preview).
After the user has completed the form and presses the submit button, I want the form to submit normally (i.e., as if Jquery is n...
Hello,
I have an HTML table element called "results". This table is dynamically populated with the results of a web service. The web service is triggered when user clicks a button. This button calls the "getResults" function shown below. This function returns a collection of objects in JSON format. When the web service successfully retu...
Hello I'm having problems with a featured content area breaking the site in IE7 which is causing the splash to display above the content (as its also jquery).
<script type="text/javascript" src="/site/3/design/js/featurebar.js"></script>
<script type="text/javascript">
//<!--
jQuery( function(){ ModelIt.FeatureBar.init() } );
...
We have a problem in IE with some users where the onclick event isn't working:
<button type="button" id="btnSomething" name="btnSomething" onClick="myFunction();">Continue</button>
After digging around the net, people suggested using jQuery's .click event for cross browser compatibility.
So I've tried the following:
<script type="te...