- Screen name: pwc1011
- Website:
pwc1011's Profile
20 Posts
28 Responses
0
Followers
Show:
- Expanded view
- List view
Private Message
- Is it possible to put a button in a list header (divider) that does not convert to a right arrow detail button? For example, put an "add" button in the header of a list.
Thanks!Patrick- I'm having trouble with navigation using 4.1.We use asp.net mvc as the back end. Our links are in the format:../../m/Member/Home../../m/Home/Index../../m/Member/SignIn../../m/Member/Profileetc...Each link corresponds to a page.I create a basic home page with a linked list....<ul data-role="listview" ><li><a href="../../m/Project/Index/">Project</a></li><li><a href="../../m/Calendar/Index/">Calendar</a></li><li><a href="../../m/Library/Index/">Library</a></li><li><a href="../../m/Community/Index/">Community</a></li></ul>There is also a header with a home button pointing to "../../m/Member/Home"I'm using Keynote mobile testing environment and Fiddler 2 to test iPhone4*** start ***I enter http://localhost:8888/m/Member/Home. Page loads fine.I click on the first link "project" and the page is loaded fine. Fiddler says "http://localhost:8888/m/Project/Index" is called, which is correct.I click the back button, and the page returns to the previous and fiddler does not show a page call. This is fine.This process works fine for each of the links. Here's where things get weird...I click on one of the links. I navigate to the page. I click the home button ( href="../../m/Mobile/Home") and fiddler says "http://localhost:8888/m/Project/m/Member/Home" is called. This doesn't make sense???If I'm on the home page and I click the home button (which shouldn't be on the home page, granted), but it calls and loads the same page "http://localhost:8888/m/Member/Home". However, now when I click the links on the linked list, it tries to load "http://localhost:8888/m/Member/m/Project/Index"Please help.
-- patrick- 17-May-2011 03:55 PM
- Forum: Using jQuery
Based on documentation I've seen, I believe there is a problem with getting data attributes, or that it is not properly documented.I understood the jQuery documentation for 1.6.1 to say that the data-camel-casing will be converted to data('camelCasing'). Given this, is seemed logical going forward that it would be better to use this nomenclature for our attribute names, so I created a test page and changed one of our attribute names from "data-rec-ed" to "data-recEd".During testing, however, I was not able to retrieve the attribute value using the new name... data("recEd"). However, when I changed the attribute name to "data-reced" (without the upper case), I was able to retrieve the attribute data using data("reced"). -- Testing using Firefox 4Am I missing something in the documentation?
Thanks!
-- patrick- Sure would be nice if the fantastic jQuery ui had the cross browser ability to show a grab and grabbing cursor on things like sort... please... pretty please :-)
-- patrick- 22-Mar-2011 01:46 PM
- Forum: Using jQuery
In our experience, 1.5.1 ajax is quite a bit faster in IE8 than FireFox 3.6. It seems fast in both, but there is a noticeable difference between the two.Does anyone else experience these differences?Any big reason for the differences... like configuration or settings?Using ASP.NET 4 and MVC 3.
-- patrick- We have a need to modify the actual css style definitions dynamically. We can successfully modify css class styles via the following steps. It seems to work fine in ie and firefox.Does anyone know of a reason it might cause problems?1. Set up a style in the dom...<style id='myStyle' type='text/css'>.cssClassStyle { background-color: red; }</style>2. Modify using jqueryfunction modifyCSS( ) { $("#myStyle").html( " .cssClassStyle { background-color: green; } "); }Thanks!
- 20-Aug-2010 03:00 PM
- Forum: Using jQuery UI
Regarding the following, I've tried 1.8 up to 1.8.4...The following error only happens in IE 8I've stripped out anything other than the most basic functionality.Scenario:1. example page layout...<body><div id='workarea'><div id='tab1>{tab defition...}</div></div></body>2. Initialize tabs:$("#tab1").tabs( );3. Bind to tabsselect function to load data to tab:$t.bind('tabsselect', function (event, ui) {return $(this).LoadTabFunc(event, ui);});4. LoadTabFunction retrieves (via post) and loads the result to the tab panel... $(ui.panel).html(data);Tabs load as expected and work fine.User then selects a button and new content is loaded and inserted to workarea $("#workarea").html(data);Once this happens, IE returns the following message "'events' is null or not an object". I've traced through and the errors comes from the jquery.extend:cleanData routine. Specifically, as jquery loops through the cache for elements from $("#workarea") during the empty() prior to the post() of the new data, it does not find some of the objects said to exist based on the elements array (jquery.expando).This error only happens in IE. FireFox, Chrome and Safari do not have the problem.I've exhausted all the options I can think of...- destroy tabs prior to load- remove all the content from the prior panel prior to load of new content in new panel- i even created a panel that loaded no data. selected it last and made sure all the panels were cleared before trying to replace the tabs content, but no luck... still get the error.PLEASE help.Thanks!- I'm trying to use delay, but it does not seem to be working. I've tried a simple statement...$("#flashNotice").show(100).delay(1000).hide(250).remove();To flash a notice then hide and remove. The div is there, but it never get's shown.Any ideas?Thanks!
- I can't seem to get a good process together for blocking events when an event is underway.For example, user clicks a tab or menu option and I want to stop all other clicks while the current event is processing.I currently push an event processing marker onto a stack and then set a callback at the completion of the event to remove the marker. Before any of the chosen click events can execute, they must check to see if there is already an event in process. What it seems, however, is I'm not getting the callback on the event completion right, so it is show complete too soon.Any help would be greatly appreciated!Thanks
- Was there a change that removed the "speed" parameter from the hide/show functions?Up until 1.8 final release, the following code worked...$(.selector).hide("blind",500,function(){ do something...});In the final release, it appears the optional "500" parameter is no longer accepted.Why was this changed?Thanks!Patrick
- Attached is a document showing a screen shot from debugging a problem in IE8. Possibly this falls under the disclaimer that functions like "alert(...)" are not guaranteed to be caught, but this seems like a pretty straight forward test.I read in an object to the variable "obj". The element "E" of "obj" contains a function. In Chrome and Firefox, this is interpreted correctly as a function, and all works as expected. In IE, however, the element "E" is read in to a "[Methods]" array as seen in the picture. Not sure why this happens, but there should be a way to test this using jQuery. I tried to test the array value as seen in the screen shot, but that too does not work.Is this something that will ever be addressed in jQuery? Is there a work around?Thank you,PatrickAttachments
- ie_function_check.jpg
- Size: 31.35 KB Downloads: 816
- 22-Mar-2010 06:26 PM
- Forum: Using jQuery Plugins
I'm using the validation plugin, and I'm trying to get the error message for a field failing validation to display above the field.here's an example of the markup for a line<div class="yd-line"><div class="yd-fielderr"></div><div class="yd-label>Field Name</div><input type="text" name="fieldname" class="yd-input" value="blah" /><div class="yd-hint"/></div>markup is such that it displays likeField Name [ ]and i would like the error message/messages to be assembled in "yd-fielderr"Value is requiredValue needs to be 3 or more charactersField Name [ ]I've tried MANY different things without success. My last attempt was...errorContainer: "div",errorLabelContainer: $(this).prev("div.yd-fielderr"),wrapper: "li",errorClass: "yd-inputerr"Please help
- I'm curious about the feedback from the jquery javascript/ajax community regarding issues developing what I would call an "all ajax" site. Meaning, a site that basically begins with a document, then all subsequent action takes place through ajax gets and posts.
First note: I'm not concerned about end users that don't have javascript enabled.
Second note: I'm not asking for feedback regarding usability/design.
My question is regarding performance and overhead as the user continues to use the site during a session. While we've been testing for the past 4 months and have seen some increase in overall memory as the session progresses, it seems to me that with some good practices, like removing and disposing of events and objects, that overhead stays reasonable and performance remains responsive.
At the same time, I would appreciate any input from other jQuery teams regarding their experiences. Also, if anyone would like to offer, what method they find best for monitoring the overhead.
Thanks!
Patrick- It seems reasonable to have a post option with the tabs.It is possible currently to set the tab to post by changing the ajax method to post, however, there is no way to easily provide a parameter with the post. (forgive my missing it if there is). To have a post option with a url and param(s), would be most beneficial.As another thought, if a callback could be added before the load, one could set the parameters for a post... this could also be useful for checking updates not saved, etc...Thanks,Patrick
I am trying to get the parentNode using jQuery. While I can get the parent object, it does not appear to be the same thing as parentNode. I really need some help.
I have a row in a table that has an icon. User clicks on the icon. In the event I using $(this).parents("tr"), to get the parent row for the icon. It finds it correctly, however, when I go to use it as a "node" with a plugin, it is not recognized as a node.
On the other hand, if I use javascript in the document and do $(this).parentNode.parentNode, the same object is returned, but it is now treated as a node. How can I do this in jQuery?
ps... the program to which I am passing this object expects it to contain the node properties like nodeName.
Thanks!!!
- 20-Jan-2010 03:19 PM
- Forum: Using jQuery
If I have a div [ id="divId"] with a button on it [ id="divBtn" ] , and I add some data to the div and I bind a click event to the button: e.g.
What happens to the data and button bind event if I remove the div? e.g.- $("#divId").add("dname","value");
- $("#divBtn").bind("myEvent", function(){...});
Are they cleaned up? Or, do I need to unbind and removeData before I remove the div?- $("#divId").remove();
Thanks!
i can't find the option to confirm my email. please help. thanks.
- 19-Jan-2010 09:03 AM
- Forum: Using jQuery Plugins
does anyone know how to "un-register" a form from the form and validation plugins?
Thanks!
- I apologize if this is already answered somewhere, as I could not find
it...
If the client is constantly calling ajax objects and those objects are
bringing with them additional jQuery scripts, how does jQuery handle
the removal and handling of objects that go away, because they are
replace by a new object with a new script. Does one have to use a
destroy/unbind to prevent memory/storage from growing?
For example:
1
Client page loads
2
Page loads an edit
ObjA edit
via ajax, and the object is loaded
with it's own set of validation and jquery functions.
3
ObjA edit is completed, so a new edit is loaded for ObjB
an
entirely different object, not just a new instance of ObjA
. Before
load the div storing the edit is cleared. The newly loaded edit
ObjB
edit
has it's own unique logic and validation.
Will jQuery still contain the bound events and created functions for
ObjA, eventhough the div was cleared?
Thanks!
Patrick
I'd like to be able to set the size of a jQuery dialog dynamically
when I call it based on the target to be shown. I was considering
adding invalid attributes like the following... where edit_width and
edit_height are parsed and passed right before opening the dialog.
<a href="HTMLToOpenInDialog" class="DialogEdit" edit_width=500
edit_height=250>
But it's probably not be the best way. The dialog call is done from a
base page, while the actual content to call is determine from the link
clicked on the widget. When setting the link, I would know the size
needed for the HTMLToOpenInDialog... Any ideas that don't use non-
standard markup or hidden fields?
Thanks,
Patrick- «Prev
- Next »
Moderate user : pwc1011
© 2012 jQuery Foundation
Sponsored by
and others.



