- Screen name: speedpacket.gmail.com
speedpacket.gmail.com's Profile
32 Posts
127 Responses
0
Followers
Show:
- Expanded view
- List view
Private Message
- Hi,
I'm sorry to "abuse" the forum this one time.
I hope someone can help me though.
If you visit http://2012.flexin.be - all of a sudden, nothing of my javascript works anymore even though the heads still contain all includes...
Is anyone seeing the light here, as I really don't see where it goes wrong to be honest :(
---
http://www.flexin.be- Hi guys,
- Hi,
I've always been a major defender of jQueryUI as it is being developed and maintained by the jQuery team itself.Lately however, we sam a lot of alternatives popup that also use jQuery as a basics, and the lack of features / widgets such as datagrid is forcing us to look for alternatives.Which is where my question pops in. We're currently using jQueryUI with jQGrid from trirand for grid functionality, but are currently looking to buy one of these commercial licenses:www.jqwidgets.comwww.wijmo.comwww.kendoui.comDoes anyone have any experience with these frameworks? Advantages? Disadvantages? Performance?I'm sorry to post it here, but unfortunately, we've been waiting too long for long-required updates on the jQueryUI framework - I still believe jQueryUI is heading in the right direction, but to be honest, it just takes too long, and the lack of the grid is a REAL showstopper for us!
---
http://www.flexin.be- Okay,I'm not the big CSS expert, but this is giving me headaches.I have a few links at the top of the page which I want to give a nice icon. (check www.flexin.be - at the top right the "contact us" / "login" links....)I tried doing it as follows:
- <a href="#"><span class="ui-icon ui-icon-refresh"/>Log In</a>
I'm not able to get the icon showing up in the links' grey area...How am I supposed to do this?- 14-Jul-2011 11:03 AM
- Forum: Using jQuery
Hello again,Please do not take this the wrong way, but rather as a genuine question I have.I do not want to be negative, but the answer to our bug report http://bugs.jquery.com/ticket/9611 did amaze me a bit.One of the main reasons we turned to a javascript framework (we used to use prototype before we - thankfully - migrated to jQuery), is that we wouldn't need to worry about browsers and versions our users use.Unfortunately, if you look at http://bugs.jquery.com/ticket/9611, I now notice that I can not rely on jQuery framework for making functions work cross-browser.In my opinion, if there is an issue with this, shouldn't jQuery intercept and wrap the call to something that does work in Webkit?Again - this is not meant to be negative, but as an end-developer, I think I should be able to rely on same behaviour of all methods provided in the jQuery library, regardless of what browser/version is being used. (or perhaps at least document it in the api docs?)What do you guys think?- 04-May-2011 01:15 PM
- Forum: Using jQuery
Hi,After solving some backwards incompatible stuff, we upgraded to 1.5 today, but the following bit of code does not seem to be working on Chrome. It used to work using jQuery <1.5, but fails on 1.5+, and only in Chrome (works perfectly on FF still...Does anyone have any idea how I can solve this?- $('<option value="' + co[i].value + '" data-prepaid-total="' + co[i].prepaid_total + '" data-postpaid-total="' + co[i].postpaid_total + '">' + co[i].label + '</option>')
- .data('prepaidPrice', co[i].prepaid_total)
- .data('postpaidPrice', co[i].postpaid_total)
- .appendTo($('#tbody-search-results tr[data-domain=' + sld + '_' + tld + '] td:nth-child(3) select'));
Thanks!David.
---
http://www.flexin.be- Hi guys,
I know backwards incompatibility can not always be avoided, but where can we have a list of the changes that are backwards incompatible? I'm still wondering whether the use of "text json" rather than "json" in an ajax call is a change which does indeed require my attention, or whether we can wait for a fix there...
It would be nice if there was a list of changes that are required due to a new release, or am I missing the location of these changes?
I'm sorry if I sound disrespectful - not meant this way, as I love jQuery, but the topics on this issue have died a silent death, so I'm still confused as to whether this is a change that we need to do, or whether this will be patched in a newer release.
Again - jQuery rocks, so would love to be able to upgrade to 1.5.1+
---
http://www.flexin.be- Hi,
I'm using livequery on my pages... I just read the documentation for http://api.jquery.com/live again, and can not remember why I required livequery plugin in the past...
Is there any difference between the two of them? I though there were limitations to live() earlier, but I don't see it anymore. I'm sure there was a reason why we moved to livequery in the past, but perhaps we need to revise that decision.
Can someone enlighten me perhaps?
---
http://www.flexin.be- 01-Mar-2011 01:33 PM
- Forum: Using jQuery Plugins
Hi,I have the following structure using jQuery validate from bassistance.de:html:- <form>
<input type="text" name="object[attr][fname][value]" id="object[attr][fname][value]" size="25" class="fx-widget fx-validate" data-validation='[{"MESSAGE":"Required Field","TYPE":"required"},{"MESSAGE":"Minimaal 2 karakters vereist","TYPE":"minlength","LENGTH":"2"}]' /> <select name="object[attr][language][value]" id="[comboboxwidget_language][value]" size="1"
class="fx-widget"data-validation='[]' > <option name="[comboboxwidget_language][CBO_SELECTOR]" id="[comboboxwidget_language][CBO_SELECTOR]" value="" > Please select... </option> <option name="[comboboxwidget_language][nl]" id="[comboboxwidget_language][nl]" value="nl" > Dutch </option> <option name="[comboboxwidget_language][en]" id="[comboboxwidget_language][en]" selected="selected" value="en" > English </option> <option name="[comboboxwidget_language][fr]" id="[comboboxwidget_language][fr]" value="fr" > French </option> <option name="[comboboxwidget_language][de]" id="[comboboxwidget_language][de]" value="de" > German </option> </select>
My javascript initialises all widgets which require validations as follows:- // let's add form validation...
- $('form').livequery(function() {
- $(this).validate();
- $(this).find('.fx-widget').each(function() {
- validators = $.parseJSON($(this).attr("data-validation"));
- for(i = 0; i < validators.length; i++) {
- switch(validators[i]["TYPE"]) {
- case 'required':
- $(this).rules("add", {
- required: true,
- messages: {
- required: validators[i]["MESSAGE"]
- }
- });
- break;
- case 'minlength':
- $(this).rules("add", {
- minlength: validators[i]["LENGTH"],
- messages: {
- required: validators[i]["MESSAGE"]
- }
- });
- break;
- case 'maxlength':
- $(this).rules("add", {
- maxlength: validators[i]["LENGTH"],
- messages: {
- required: validators[i]["MESSAGE"]
- }
- });
- break;
- default:
- // do nothing...
- }
- }
- });
- });
As you can see, for all widgets in a form, we check for the data-validation json string, parse it and dynamically add validators to the widgets.This works fine, but in the above example, whenever we loose focus on the combobox, it validates saying that you need to enter two characters at least... I don't understand why it does...Does anyone else have an idea?If you want, I can create a public example... Just let me know...---
http://www.flexin.be- Hi,
I have found MANY topics on this issue, but never gotten a solution...
http://lasonanta.flexin.be/flamenco/en/guitar-essentials-shop/strings/francisco-barba-2007.html&_s=0&
Just click on the link at the bottom "write a review"; it will display a form we are supposed to proces using ajax...
It works fine in IE (first timer something only works in IE...), but fails in FF with the error "RecaptchaState is not defined" Has anyone come accross this earlier?
Thanks!!!
David.
---
http://www.flexin.be- Hi again guys,
I'm going almost crazy over this...
Consider the following code:- $('form.ajax').livequery(function() {
alert('ajax form...' + $(this));
$(this).removeClass('ajax');
$(this).submit(function(e) {
alert('ajax submission goes here...');
e.preventDefault();
});
});
Guess what - the first alert goes fine, indicating that thde livequery does work, and the form is going through this initiation code. However - when I submit the form, I NEVER get the alert, and it simply performs its default behaviour, telling me the submit handler is never called.
Does anyone have any idea?
I'm using basistance validation class as well - are the interfering with the above code?
---
http://www.flexin.be- Hi,
We have implemented the great validate class, but are running into some issues...
For backwards compatibility reasons, our form validation is initiated as follows:- $('form').livequery(function() {
$(this).validate();
$(this).find('.fx-widget').each(function() {
validators = $.parseJSON($(this).attr("data-validation"));
for(i = 0; i < validators.length; i++) {
switch(validators[i]["TYPE"]) {
case 'required':
$(this).rules("add", {
required: true,
messages: {
required: validators[i]["MESSAGE"]
}
});
break;
case 'minlength':
$(this).rules("add", {
minlength: validators[i]["LENGTH"],
messages: {
required: validators[i]["MESSAGE"]
}
});
break;
default:
// do nothing...
}
}
});
});
Is this a known issue?
---
http://www.flexin.be- Hi guys,
http://www.flexin.be is still in beta test with a select number of customers.
For some reason though, my firefox continues crashing randomly when visiting the site, and 90% of the time when I use my back button on the site.
I can't pinpoint the issue, and I can't think of anything that may have changed.
The site is full of jQuery code, as we use it heavily to instantiate widgets, etc, but I don't know what changed which might be causing this? I have searched these forums, and searched through the firefox bugs and forums, but can't find anything that might help me.
It might have to do with a plugin we use, but does anyone have any idea on how we can pinpoint the issue? What can we do to try and figure out what happens when it crashes?
Thanks very much for your assistance!
---
http://www.flexin.be- Hello,
I've been absent for a while, but promise to make up and try and reply to some questions soon again, so I can contribute SOMETHING to this wonderful project again!
I have a question though - I would need a SITEMAP icon to put it on top of a new website... Any chance this might be included in a new release of jqueryUI?
---
http://www.flexin.be- Hi,
I'm not sure what is causing the issues I'm experiencing, but we're currently building a very easy ticketing system for our clients into the main site. Tickets are tied to customer accounts this way, so we don't want to use a third party tool anymore (Kayako has been promising their version 4 for ages, so we decided to stop waiting anyway...)
Okay. On to the issue...
You can see what we did on http://flexin.be/site/en/SupportTicket/customerView/24.html?KEY=0651b7a5fd4c418eda481eb743e0c35b
For non-logged in users, a key will be provided to the user by email to access it. Anyway: as you can see on that page, we have tabs which by default always load their content by ajax (based on the privileges, we have more than one tab, and we don't want to send all that data to the client, so ecah tab is loaded by an ajax call... You will only see one tab as you are no staff...)
Once the tab is loaded (which goes fine), you will see the ticket details, and at the bottom right corner, we added a "reply" button which is supposed to give us a dialog which has the form which in turn, when submitted through ajax, will add a reply to the ticket.
I have one major issue with this and a nice question...
The big issue is that the addition of the dialog with the contained form is apparently causing this particular page some serious issues in terms of peformance. In fact, on many occasions, firefox (or IE for that matter), will popup to ask if we want to kill the script, as if it is running in an infinite loop...
It then refers to http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js:6233 as being the script no longer responding. I don't really understand what the issue is. We just bound a click event to the reply button which opens a dialog which when submitted performs an ajax call...
It must be said, we need to get rid of some old prototype code still, but this issue is giving me headaches.
Secondly - the question i have - how can I upon closing the dialog due to succesfull submission of the form, automatically reload the tabs content? I don't want to use an id for the tabs as this is generic framework which I don't like breaking into, but when a response is added, it would only make sense that the ticket information is being refreshed to show the new reply list...
Again - thanks so much for all the effort of the team and the great help from all community members here!
---
http://www.flexin.be- Hi there,
I'm sure many of you may already have had this issue, but do you know what our most commonly reported bug is?
I don't think we can at this time, can we? Are there any thoughts on changing this, as most users really just don't get that they need to select 2000 and then the combo will update itself to show the 1990 - 2010 range, and that they need to repeat that action X times (the older they are - the more they need to do LOL)Hey guys - I tried registering at your site, but couldn't. I'm older than 10 years, and the datepicker will only allow me to start from 2000. Can you fix this?Hi,
I have an accordion set up as follows:
- <div class="fx-accordion" >
- <h3><a href="#">Question 1</a></h3>
- <div>
- Answer 1
- </div>
- </div>
I'm then using livequery to initialise these accordions (they come in through ajax!) as follows:
- jQuery('.fx-accordion').livequery(function() {
- jQuery(this).accordion();
- } );
The accordion seems to be generating perfectly well. However - whenever I click an item to expand, I'm getting the following error:
jQuery.easing[specialEasing || defaultEasing] is not a function
The error goes back to line number 5854 of jquery.js.
this.pos = jQuery.easing[specialEasing || defaultEasing](this.state, n, 0, 1, this.options.duration);
I'm running the latest versions of jQuery and UI published on Google CDN.
Any idea anyone?
If you would like to reproduce, go to http://www.flexin.be/site/en/department/contact/1.html?_rw=4&_s=0&#
In the question box, enter "control panel test question" and wait 2 seconds; you will be presented with FAQ entries there which are being presented in an accordion :)
Thanks so much for your help, guys!
- Hi,
It's probably caused by scripts written by us, and some of the old prototype scripts we're migrating to jQuery still, but we're having some major issues with Internet Explorer (don't we all do?)
First off, we're getting an error
on jquery.js, line 5899 - invali argument (currently using 1.4.2 from Google CDN).
The line reads:fx.elem.style[ fx.prop ] = (fx.prop === "width" || fx.prop === "height" ? Math.max(0, fx.now) : fx.now) + fx.unit;
Does anybody have an idea what might be causing this?
Secondly, jqGrid is not working at all under IE.
I have no clue as to how we can debug stuff like this in IE. We use firebug while developing, and we should have been testing more thoroughly on IE during development, but I'm a little stuck now in terms of patching these issues.
How can we debug the code in IE?
David.- 12-Apr-2010 01:31 PM
- Forum: Developing jQuery UI
Hello,
I know the tooltip plugin is still under development, but it's unclear to me where I should log suggestions/questions such as this one.
If you go to http://flexin.be/site/en/TLD/publicInformation/100007.html?_s=0&, you'll notice a list of extensions we support at the right of the page. Hover any of the price tags you see, and we are asking the server to return the exact tax calculations from the server to display them in a nicely put tooltip.
The issue we have with this is that the tooltip does not automatically resizes its width to match the returned html.
Is this a "feature to come", or will this not be supported? At this time, I noticed that the width seems to be set hardcoded in the CSS...
Thanks agan for any feedback!!!
Regards,
David.- Hi,
I would like to add an event handler to the submit() method on the form.
If the form contains an elemant recaptcha, it should show a recpatcha in a modal, and upon completing that recaptcha, assign the entered captcha to that element to be submitted long the form.
Basically, I would be able to attach the code that renders the modal and the recaptcha form in the .submit event handler.
I was just wondering; if we have multiple form.submit() handlers that we attach to the forms. in what order are they executed? and what if one of the handlers return false - will the others still be executed? What if we add the "preventDefault" call in any of these handlers?
Basically - I need to know how I can make sure that this handler I'm attaching to the form does not interfere with any other handlers that may have been attached to the forms submit event...
Thanks for the feedback!!!
David.- 01-Mar-2010 10:07 AM
- Forum: Using jQuery
Hi,
jQuery offers the ability to set a DATAFILTER for all AJAX calls.
I would LOVE to use this feature, so I tried implementing this...
This is the code on the client that I have:- jQuery.ajaxSetup({
- dataFilter: function(data, dataType) {
- if(dataType == "json") {
- var obj = jQuery.parseJSON(data);
- if(obj.meta.flexin.is_generic_json) {
- // We have a generic flexin JSON object, let's process generic stuff here...
-
- // return the actual json object...
- return obj.json;
- } else {
- // this is not a generic flexin JSON object, let just return the regular data...
- return data;
- }
- } else {
- // we do not have a JSON object - let's just don't do anything and return the data as is
- return data;
- }
- }
- });
- $json = array();
- if(is_array($value)) {
- $json["json"] = json_encode(utf8_encode_array($value));
- } else {
- $json["json"] = json_encode($value);
- }
- // adding generic stuff here...
- // this attribute is set so the client know json was served using this function, and we need to pre-process using the dataFilter option in jQuery...
- $json["meta"]["flexin"]["is_generic_json"] = true;
-
- // TODO: add generic stuff here... (such as error messages...)
-
- echo json_encode($json);
- exit();
As you can see, the obj.json will in fact contain a JSON string which I believe would be right to return for further processing by the code. For some reason however, this breaks everything.
I already tried returning jQuery.parseJSON(obj.json) to force it to return a json object in stead (which would in fact surprise me), but it doesn't work either.
So I'm stuck here. I believe that the dataFilter option should return "sanitised" data, being the data that my code used to receive before I wrapped it in an array containing additional metadata, but it appears I'm missing something here...
Hoping someone will be able to help me out here!
Thanks a lot!
David.- 01-Mar-2010 02:26 AM
- Forum: Using jQuery UI
Hi,
We have a what we call "relatedObjectWidget" which maps to a foreign key field in a database. This is currently implemented using an autocomplete based on prototype, which we would like to migrate to the jqueryUI one.
One of the features of the widget is that after the autocomplete text input, there is an icon/button which allows the user - if he has privileges of course - to create a new "related" object by a popup window. If the user submits the popup, both label and value are set on the autocomplete to the newly created one and the popup is closed.
this works great, but I seem to be missing a method to programmatically set the label and value on a jQueryUI autocomplete. Is this currently supported?
Thanks again for a wonderful framework :)- Hi,
My login to the site is being processed using ajax, which does a redirect to the members page upon succesfull loggin in.
The login feature however can in fact take a while because we need to initialise quite some data when a user logs in (his details, but also his privileges are loaded, his personal menu based on these privileges are being loaded, we are loading shopping cart info, we are initialising personalisation settings, and a whole lot more.
It sounds like a big thing, but it isn't, and once logged in, the application is going great. the only thing is that the login proceure can take 3 - 4 seconds, and I would like to be able to show the client the progress of the serverside script:
"Searching your account..."
"Validating your privileges"
"Initialising your personal menu"
blablabla...
To do this, I might just call an ajax call that starts the login procedure, and then issue another ajax call every 1 second or so to update the status based on some session variables I set in the login procedure and that I can serve to the client when th next ajax calls come in, but I would love for this to work a little nicer as in just needing to initialise ONE ajax call which can send back statusupdates from the server...
Any idea how I might be able to achieve this?
Thanks so much!
David.- 11-Feb-2010 11:44 AM
- Forum: Using jQuery
Hi,
I'm not entirely sure whether this is a jQuery issue or a jqGrid issue, but we are using the jqGrid to display our grids, and easily enable sorting and filtering. THis works great.
Our server howvever is designed to wrap ALL result into an array of generic information that should always be returned to the client (such as fields we want to keep up to date, status of the server, or just error messages), and put the actual data to be turned into the $array["data"] prior to json_encode it and sending it to the server.
This means I would like to do pre-processing of any serverreturned json befor sending it to the data handler such as the jqGrid.
Someone on the forum (thanks so much), pointed me towards setting the option "datafilter" as follows:- jQuery(document).ready(function(){
- // Set default AJAX options...
- jQuery.ajaxSetup({
- datafilter: function(data, dataType) {
console.log("Pre-processing data..."); - return data;
- }
- });
- });
Unfortunately, I get no console.logs whatsoever when the grid is refreshing its data through ajax...
Does anybody have any idea what might be causing this?
Thanks so much for any ideas/suggestions!- 05-Feb-2010 03:48 AM
- Forum: Using jQuery UI
I'm sorry for double posting, but the initial topic that I responded to, is tagged as fixed/responded, so I'm afraid it might get lost...
I'm currently experiencing the above mentionned error on my tabs using AJAX when I do not supply a target div to update... I'm using the latest version as published on Google code of both jQuery and UI.
This is the HTML:- <div class="fx-tabs">
- <ul>
- <li><a href="{$objectTab.link}"><img src="path_to_image.png"/> Label Tab 1</a></li>
- <li><a href="{$objectTab.link}"><img src="path_to_image.png"/> Label Tab 2</a></li>
- </ul>
- </div>
- // Initialise all tabs on the page...
- jQuery('.fx-tabs').tabs();
- <li class="ui-state-default ui-corner-top ui-tabs-selected ui-state-active">
- <a href="#ui-tabs-[object Object]">
- <img border="0" src="/images/icons/16x16/plain-v/view.png"/>
- General
- </a>
- </li>
FYI: as we're still in a migration process to get rid of prototype/scriptaculous, we are running jQuery using the noConflict() option... This shouldn't interfere, but I thought I'd put it here for info anyway...
thanks a lot for any input which might help me get rid of the problem!
Cheers!
David.- «Prev
- Next »
Moderate user : speedpacket.gmail.com
© 2013 jQuery Foundation
Sponsored by
and others.

- $('form').livequery(function() {
- $('form.ajax').livequery(function() {

