JQuery :: Make A Small Bbeditor And Have Hit A Road Block?
Mar 4, 2011
im trying to make a small jquery bbeditor and have hit a road block. when the user selects the [b] tag for example i want it to wrap the tags [b][/b] around their highlighted text. if they havent highlighted any text then it will insert the tags as normal but i need the caret to be in the middle of the tags. Any one know how i would go about this?
View 2 Replies
ADVERTISEMENT
Jan 27, 2011
I want to resize the dialog/popup box that appears as datepicker. How can I make the size smaller than what it comes as default size? I have to navigate on the dates using arrow keys. How it is possible to implement.
View 4 Replies
View Related
May 23, 2011
I want to use javascript to add all the formatting to the div. It works in Firefox but not in other browsers. IE and Chrome keep linebreaks around the div for some reason. What am I doing wrong?
[Code]....
View 4 Replies
View Related
Feb 15, 2004
These are a couple little bookmarklets that make testing your pages easier.
This is for adjusting resolution.
<script>
javascript:external.AddFavorite('javascript:void(m=window.open("","m","height=30,width=150"));m.focus();m.document.write('<form><select onchange="opener.eval(this[this.selectedIndex].value)"><option value=""><option value="self.resizeTo(640,480)">640x480<option value="self.resizeTo(800,600)">800x600<option value="self.resizeTo(1024,768)">1024x768</select></form>')','Resize')
</script>
This is for running selected code. You select the code then open the bookmark. (I used it testing this post.)
<script>
javascript:window.external.AddFavorite('javascript:void(window.open("javascript:document.write(opener.document.selection.createRange().text);document.close()"))','Run Code Selected')
</script>
Turn borders on to see table layout.
<script>
javascript:window.external.AddFavorite('javascript:void(t=document.getElementsByTagName("table"));for(i=0;i<t.length;i++){void(t[i].border="1")}','Borders On')
</script>
I use them regularly hope they're usefull to you.
View 8 Replies
View Related
Jul 15, 2011
We are using FlowPlayer to display a video on our website page here. However the video appears very small in IE8 (like a thumbnail) and I cannot seem to work it out!
View 2 Replies
View Related
Jan 31, 2011
I am new to JQuery. I am using Block UI in my application.In submit button onclick event, i am performing client side validations ( required fied validators )in asp.net.On clicking submit button,whole page is blocked and at the same time validation message is also displayed and page remains blocked. While performing client side validations i don't want to block the page.
View 3 Replies
View Related
Aug 14, 2011
I'm very new to JQ, I was looking for a solution to expand a div on mouse hover from its center to display some dynamic text wrapped in a code tag, I found and tried to fit to my needs this little piece of code, however is not exactly what I'm trying to do.
[Code]...
View 1 Replies
View Related
May 27, 2011
In slideshow running on xp_pro/ie8, after the last slide is displayed, a small white rectangle (approx w:60px h:20px) at the top left positionwhere the1st slide is about to re-appear. The 1st slide then displays correctly, as doall the slides, but I can't keep the rectangle from showing up.
[Code]...
View 1 Replies
View Related
Aug 6, 2009
How to auto-align and distribute many small images inside a div ?
I want something like that :
<div class="ContainerThatAlignMyIcons">
<img src="img1.jpg" width="10" height="10" alt="img1" />
<img src="img2.jpg" width="10" height="10" alt="img2" />
[Code]....
I want that jQuery distribute all this item for the left border to the right border of the div.
I wonder if any plugins is doing this ? I did a search in Google and I do not find something near the result that I want.
View 4 Replies
View Related
Mar 11, 2011
This is my first time using the forums, so please excuse me if I do something wrong. On my website I am using jQuery 1.5.1 and the latest jQuery Form plugin. Wherever I have a textarea input, small inputs of less than about 10 characters fail to be sent to the server. For example, if I have a form: <form id="someform" method="post"> <textarea name="foo">
View 4 Replies
View Related
Feb 15, 2010
I'm starting to use JQuery ajax and am seeing a second-2 delay in the loading of a line of text when I click on the link.
Here is the JQuery code
Content should load when the slideUp is done but it normally doesn't change the content till halfway through the slide down because of the delay.
I've tried without the slideup/down but it still has this delay.
The content to load is at most 8 words.
View 1 Replies
View Related
May 19, 2010
I'm working on a project that involves a page with a large amount of images (sometimes 400+). What's the best way to handle this? Should I track the loading-state of all of them, or is it save to assume I can do stuff as soon as the last image is loaded? So.
[Code]...
View 3 Replies
View Related
Sep 21, 2010
In the attached there is a little 'C' or little 'R' in the menu item. The menu item is an image. I have 5 menu items and only 2 of them have the little letter.
View 2 Replies
View Related
Dec 15, 2011
I've been trying to create a small input box that changes the form action based upon what the user enters. I can get these two options to work:
1. If value IS NOT 123456code, then action should be search-results.html.
$("form.filterform").keyup(function(){
if($("input.searchbox_resources").val()!="123456code"){
$("form.filterform").attr("action","search-results.html");
}
});
2. If value IS 123456code, then action should be search-results.html.
$("form.filterform").keyup(function(){
if($("input.searchbox_resources").val()==="123456code"){
$("form.filterform").attr("action","error.html");
}
});
I want to replace option 2 with a variation... where the user gets the error.html page if what they typed contains 123456code. As it stands currently, option 2 requires that a person types in that code exactly with no differences at all.
I was thinking it should look like this:
$("form.filterform").keyup(function(){
if($("input.searchbox_resources").val()*="123456code"){
$("form.filterform").attr("action","error.html");
}
});
But that does not seem to work.
View 2 Replies
View Related
May 27, 2011
I have this code:
$('#clickshow1').mouseover(function() {
$('#menu1').slideDown('slow');
});
$("#first").bind("mouseleave",function(){
$('#menu1').slideUp('slow');
});
I would like the second don't work as the first is not finished. Because I have a "yoyo" effect.
View 2 Replies
View Related
Apr 29, 2010
i built a application with the jquery-plugin jstree to maniputate a tree stored in a database. all actions like create, move, delete and rename are fire up ajax-calls to php-scripts with mysql-querys. i got it to work, to display a trobber and 'waiting'-text during the ajax-calls, but what i also want to do is blocking" the site for this time, so that the user HAS TO wait and couldn't click somewhere else. This blocking should be should be visible like the behaviour of modalwindows. the background should be with a dark overlay.
View 1 Replies
View Related
May 7, 2010
<!
DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<
html
[Code]....
I have code like above. When user click on row i fire event click() on 'a' elem. But firing this event fire row click() event and i have neverending loop. How to block firing click() on row?
View 1 Replies
View Related
Mar 27, 2010
I have a structure of similar blocks
- all containig a clickable image
- each identified by a unique hidden index
I want to find the value of that index when clicking on the image The code is something like :
<div class="bloc">
<p class="enTete">
<img class="modif" src="monImage">
<input type="hidden" value="1" />
[Code].....
How can i write the selector to read the right index when one the image is selected ?
Somethig like : (The '?' means I dont find how to do !!!!)
$(' ? .modif').click(function() {
test = $(' ? .index').val();
alert(test);
});
View 1 Replies
View Related
Dec 5, 2010
I have a page where I list hardware devices we monitor for customers. Each row displayed also shows the status of the device i.e. whether it's running, paused, starting up etc.
To improve page load times I list the devices but don't query for their status until the page is rendered. This is because some queries such as via SNMP or other API's can take as much as 5-10 seconds to respond. So for a list of say ten devices it could take well over a minute of the user looking at a blank page. So I do the following instead -
On the device list page I have the following script:
$(document).ready(function () {
var devices = $('div[name="runStatus"]');
devices.each(function () {
// Get device ID (I embed this using the HTML5
[Code]....
What I'm finding is that if I allow this script to run, all links on the page become unresponsive.
I'm guessing this is because I've quite a few almost parallel async requests blocking until they get a response from the server and somehow the "UI thread" is being blocked by this?
However I thought this wasn't supposed to happen with AJAX.
I find this 'blocking' behaviour to happen in IE8, Chrome 8.0 and Firefox 3.6. Chrome in fact shows the arrow cursor + spinning-toilet-bowl-of-death (I'm using Windows 7) as if the page isn't completely rendered.
There are only six or so items in the list and happens even if I comment out the $('div[data[data-deviceid=... line.
View 2 Replies
View Related
Jun 4, 2011
I couldn't find any in Google or in the JQuery plugin library.I am trying to develop a book like app, where the site manage enters a text as long as he like into CKEditor textbox. the editor of course create tags around the text, and also there might be images inside the text.Then when someone chooses the book (bunch of DIV tags), he gets a book like js (this is working) and i need to populate the book with the content from the DB.
The problem is that i just can't figure a way to split the text into small chunks without destroying tags in the process.Is there a split app in jquery that does that?
View 2 Replies
View Related
Jul 10, 2009
Why not a plugin like (small correction void should be a string)
$.fn.delay = function(delay){
if(typeof delay==="undefined") delay = 1000;
return this.animate({"void":0}, delay);
}
This way you can call it like this
$('#element').delay().effect('pulsate');
View 1 Replies
View Related
Oct 10, 2009
I am trying to display a hidden ul by using the $("id").addClass()method. For some reason the ul stays hidden.[code]
View 3 Replies
View Related
Mar 2, 2010
If I use slideDown effect it leaves an inline style="display: block" that causes the list ordinal to be hidden.
View 2 Replies
View Related
Jun 29, 2009
I have set up a page which when I click the button BlockUI does what is supposed to do as well as jquery Form plugin; however, the success and failure messages are displaying in the blockUI. What I would like is for the success and error messages to replace the form. The code I am using:
javascript Code:
$(document).ready(function() {
$('#signup').click(function() {
$.blockUI({ message: $('#blockform') });
[Code].....
View 6 Replies
View Related
Feb 24, 2010
I'm working on a simple slideshow made with jQuery. What I'm trying to do now, is to make it change image every X second. I know how to change image, but i'm kind of stuck trying to find out how to make it "do something" every Xth second.
Here's an example: (obviously not working..)
function slideSwitch() {
//change image...
}
setInterval(slideSwitch, 5000);
//make the function slideSwitch execute every 5th second.
Also, is there any "else if" function in jQuery? Like in for example PHP, you can use "if", "else if" and "else".. like this:
if(){
}else if(){
}else {
}
So is there any function like that? I googled it, and I found out I have to use some kind of plugin for it to work? How do I use it?
View 22 Replies
View Related
Jun 14, 2010
I'm having a problem with Chrome and jQuery where I'm appending a script block to a page and I want the script to execute when it is appended. This works fine in every version of FF and IE I can find, but not in Chrome.
see the attachment for a simple example. In FF and IE you should get a 'hello world' alert when you click the page, but in Chrome you get nothing.
get Chrome to execute a script when the script is appended to a web page?
Attachments
TestChromeScript.zip
Size : 546 Bytes
Download : 441
View 4 Replies
View Related