[Skip to main content](#vessel-content)

#   jQuery error Uncaught RangeError: Maximum call sta

##

- **[sandervankasteel](/forum/user/41156-sandervankasteel "View sandervankasteel's Profile")**
- [![sandervankasteel's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/41156-sandervankasteel "View sandervankasteel's Profile") Topic Author
- [ Offline](/forum/user/41156-sandervankasteel)

Less More

- Posts: 1
- Thank you received: 0
-
-

10 years 7 months ago -  10 years 7 months ago [\#231621](#231621) by [sandervankasteel](/forum/user/41156-sandervankasteel "View sandervankasteel's Profile")  *[jQuery error Uncaught RangeError: Maximum call sta](/forum/31-development/882690-jquery-error-uncaught-rangeerror-maximum-call-sta#231621 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.4.16 -- Error-message(debug-mod must be tuned on) -- : jQuery error : Uncaught RangeError: Maximum call stack size exceeded  Hello,  For a client I've developed a custom pricing plugin which is working great, the pricing is based on 2 custom fields (made in HikaShop). Now the client wants that once the those fields have a certain value, the text value of the price is set. So I've written a small component which returns that price as JSON and now I'm trying to use AJAX to fetch that price but jQuery is returning this error  The code that does the AJAX call:  Any suggestions?")* was created by *[sandervankasteel](/forum/user/41156-sandervankasteel "View sandervankasteel's Profile")*

-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.4.8
-- PHP version -- : 5.4.16
-- Error-message(debug-mod must be tuned on) -- : jQuery error : Uncaught RangeError: Maximum call stack size exceeded

Hello,

For a client I've developed a custom pricing plugin which is working great, the pricing is based on 2 custom fields (made in HikaShop). Now the client wants that once the those fields have a certain value, the text value of the price is set. So I've written a small component which returns that price as JSON and now I'm trying to use AJAX to fetch that price but jQuery is returning this error

> Uncaught RangeError: Maximum call stack size exceeded

The code that does the AJAX call:
Code:

jQuery(document).ready(function() { // if(typeof(hkjQuery) == "undefined") window.hkjQuery = window.jQuery; // window.hikashop.ready(function() { jQuery('#breedte').on('keyup', function(event) { if(parseInt(jQuery(this).val()) &gt; 30 &amp;&amp; parseInt(jQuery("#hoogte").val()) &gt; 30) { getPrices(); } }); jQuery('#hoogte').on('keyup', function(event) { if(parseInt(jQuery(this).val()) &gt; 30 &amp;&amp; parseInt(jQuery("#breedte").val()) &gt; 30) { getPrices(); } }); }); function getPrices() { jQuery.ajax({ url: '&lt;?php echo JRoute::_("index.php?option=com_name&amp;task=prices.getprices"); ?&gt;', data : { 'width': jQuery('#hoogte').val(), 'height' : jQuery('#hoogte'), 'product_id' : jQuery('#product_id').val() }, dataType : 'json', type : 'POST' }).done(function(returnData) { console.log(returnData); // jQuery('.hikashop_product_price').text( "€ " + returnData.price +""); }).fail(function(returnData) { console.log(returnData); }); } &lt;/script&gt;

Any suggestions?

Last edit: 10 years 7 months ago by [sandervankasteel](/forum/user/41156-sandervankasteel "View sandervankasteel's Profile"). Reason: Typo + addition

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg4MjY5MC1qcXVlcnktZXJyb3ItdW5jYXVnaHQtcmFuZ2VlcnJvci1tYXhpbXVtLWNhbGwtc3RhP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86289
- Thank you received: 14266
-
-

10 years 7 months ago [\#231627](#231627) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[jQuery error Uncaught RangeError: Maximum call sta](/forum/31-development/882690-jquery-error-uncaught-rangeerror-maximum-call-sta#231627 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.4.16 -- Error-message(debug-mod must be tuned on) -- : jQuery error : Uncaught RangeError: Maximum call stack size exceeded  Hello,  For a client I've developed a custom pricing plugin which is working great, the pricing is based on 2 custom fields (made in HikaShop). Now the client wants that once the those fields have a certain value, the text value of the price is set. So I've written a small component which returns that price as JSON and now I'm trying to use AJAX to fetch that price but jQuery is returning this error  The code that does the AJAX call:  Any suggestions?")*

Hi,

On which line of that code do you get that error ?

The only issue I see is that you have:
'height' : jQuery('#hoogte')
instead of:
'height' : jQuery('#breedte').val()

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg4MjY5MC1qcXVlcnktZXJyb3ItdW5jYXVnaHQtcmFuZ2VlcnJvci1tYXhpbXVtLWNhbGwtc3RhP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.153 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
