I have called a calendar icon file from a script on the form - this works except IE, where I get the "x" for image. I prefer to call it from the widget defaults. I have downloaded the themeroller version, including datepicker. The defaults regarding button image that came with the download are:
buttonText:"",buttonImage:"",buttonImageOnly:false, I wish to change it to: buttonText:"calendar",buttonImage:"",buttonImageOnly:true,
Note the missing button image from the icons png that comes with the download. I can see that other widgets use those and that there is a calendar icon, but how do I go about calling that supplied icon calendar onto the page by using "buttonimage:"" "? I suspect there may be more to it...but cannot follow it through.
I am using multiple instances of the jquery datepicker on my form. Due to my CSS i could not use the icon trigger built-into jquery, it caused the icon to be displayed below the input field and i wanted it to be displayed next to the text. Below is the code for one of my input fields.
[Code]...
I have multiple date fields i want to use the datepicker with. The issues i am having are; 1. when i click on the icon to display the datepicker, the picker is displayed, but it displays on the wrong icon. No matter what icon i click on it always gets displayed on only one and it is always the same one. Each field has its own unique name and id the only thing that each field shares is a class. I can't seem to figure out how to fix this. My other issue is that when i click on the icon the page scrolls to the top, so if i am clicking on a picker icon at the bottom of the screen it scrolls the screen to the top.
I would absolutely love to have the datepicker icon BEFORE the input field. Is there any simple way of doing this? (Or even not so simple... am prepared to have a go at tweaking the code in the .js file if only I knew where to start looking
I have 2 datepickers, 1 that has the day in and the other the day out. Id like to be able to disable the day out datepicker icon(hide it) until you put in the day in date. Here's my code. You'll notice the onSelect:datepickerhandle...this makes a call to that function which only allows the day out date to be within 30 days of the day in.Ill add this script at the bottom to.
I am using both the jQuery Validation plugin and the datePicker plugin. I would like to get the error message for this showing after the calendar icon for the datePicker plugin. I have tried this and cannot get it to work and so far not found a solution on any website I have checked.
jQuery Validation code $(document).ready(function() { $("#adminform").validate({ submitHandler: function(form) { SubmittingForm(); }, rules: { date: { required: true, date: true }}, errorPlacement: function(error, element) { if(element.type == 'input') { error.insertAfter(element.sibling(a)); } else { error.insertAfter(element); }}}); }); Trying the sibling thing was my last probably silly attempt at getting this working.
HTML output when the field fails validation <fieldset> <legend>Update Date</legend> <label for="date" class="admin">Date of Run: </label> <input type="text" class="date-pick dp-applied error" size="7" value="" name="date" id="date"> <label for="date" generated="true" class="error">This field is required.</label> <a title="Choose date" class="dp-choose-date" href="#">Choose date</a> </fieldset> As you can see the label for the error is placed inbetween the input field and <a> for the calendar image. How to get this label to show after the <a>.
I have successfully implemented the Datepicker plugin but am having very difficult problems with the image alignment of the calender icon.
The icon seems to have no padding/margin/spacing between the input box and the image, and is also not aligned correctly.
I have viewed the documentation but can see no reference on how formatting is achieved.. I looked at jquery-ui css (redmond) and can see no reference to how this is aligned.
I have a fromDate and a toDate input box both populated using thedate picker. For thedefault Datehow can i specify it so it always uses last week starting fromSaturdayand going toSunday and not the current date or a fixed date?
Iam using JQuery DatePicker Plugin , created by Kelvin Luck [url]. Plugins default format is d/m/Y. how to change its default format to US Date format (m/d/Y).
how do I change my html/javascript so that if I drag and drop a link from a webpage to the desktop in such a way that the name of the shortcut created is not the URL of the link but the link itself?
e.g. if the link is
<a href="http://www.microsoft.com"> MS </a>
then the name of the desktop icon should be 'MS' and not http://www.microsoft.com
When dialog pops up and when I want to select date from datepicker but clicking on input datepicker is under dialog. What option make it to be on top ?
I am looking for a way to put all CSS values on my selected elements back to its default. I was wondering if anyone has maybe done this before and if not has any idea's to get me started.
The idea is that when I use for example:
The elements within .setDefault will return to its default font/color/height/width etc... so basically all posible values.
I wrote a little jquery that will rotate through images automatically and when you click on an it's icon. If I let the rotator cycle throught the images everything is fine, but when I click on it's icon, the div tag that holds the images gets space added to the bottom and I can't figure out why? I tried everything css related so this appears to be something jquery related.
Here is the code that is used for flipping through the images: $("#button2").click(function(){ $("#block-block-4").fadeIn("fast"); $("#block-block-3, #block-block-6, #block-block-7, #block-block-8").hide(); });
I'm building a site that uses some jQuery but at this point I haven't had to get my hands dirty in the code. I'm hoping to get some pointers on how to best approach this problem, or if a plug-in exists to point me that way. I'm anticipating I'll need to build the code though because of the specific nature of the issue. I have a two very complex MySQL data trees that need to cross reference. To handle the cross referencing I simply have a third table that links the ids of the large tables together. That way I can join data via the linking table. This is all working and established. What I need to do is allow the admin user to navigate through one tree from within the context of a particular element from the other tree and click a toggle icon (tick or cross) to create or delete the cross reference in the linking table. Traditionally I would perform this task using forms but I want the user to be able to make these changes on the fly without needing to reload the page. I also want to stop further toggling until the update or delete has been completed.
i working on web map of MMORPG gamehttp:[url].....(here is "working" version dont comment a code, its shitty i working on funkcionality,i will perform code cleaning and optimalizacion after i implement all needed functions and solve all my problems)so i have 2 problems:
1) map performance when zooming.i need drawn ~600 dots of NPCs on map and recalculate their positions on map when zoom in/out, my current solution is slow ( cleaning and appending HTML into map content) i wana know if there is faster solution how do it ?
2)i using jQuery tooltips to show data when NPC or fort icon is mouseovered , it works great only with one problem, when i zoom with tooltip opened , it loose "connecion" with fort/NPC icon and tooltip stuck on screen...
When using .ajax, and when before I receive any data back from the server, I would like to call a function that could display some type of 'thinking' icon. In looking a the documentation I see there is a 'success', for when after receiving data back successfully, and an 'error', for obviously when something bad happens and need to error gracefully. I do not see something like a 'beforeSuccess' function that would allow me to specify, for example, to overlay a 'thinking icon' on top of a <div> after request is sent to the server and before I get any data back. I would assume this is a pretty standard necessity in ajax applications, and probably missing something here. How exactly is this done using the .ajax methods?
I am trying to include Dock MAC style Menu in my page which is floating.Here I am facing a problem is, when we hover on menu icon, without scrolling page at bottom, the menu iconsare not getting bigger in size, as it should be.And when you reached at bottom, moving scrollbar down, those icon gets bigger when we hoverI have placed the script just before the end of body tag. I also tried placing the code in starting of body tag, then the reverse thing happen. The icon gets bigger without moving scrollbar down and when we move to bottom, or scroll, the effects lost.
I have a function that sends some data to a PHP file for processing, and call a page refresh after that, but it's not working. This is what I have so far:
function Reload() {location.reload() ;} function del(v,m,f){ $.post("system/reject.php", {id: v}) ; javascript:parent.mainFrame.document.location.reload(); }
The function Reload is something else I tried while trying to get it to work but everything I have done so far doesn't work. :(