903 comments found

hey.. It’s me Can I add submenu on front end? and how to do that

thank you

ace
ace Author

Hi there

You can use bootstrap button drop downs :)

http://getbootstrap.com/components/#btn-dropdowns

It can be applied to a link without a button look and feel, let me know

apaustria Purchased

Hi Ace, can you please help me on datatables?

I have a json data that look like this: { "hasresults": true, "resultscount": 2, "zip": null, "chart": { "rows": [ { "chart": "A841775", "firstname": "Gennifer", "lastname": "Adamson" }, { "chart": "10-0001", "firstname": "William", "lastname": "Adamson" } ] } } Then a function that get’s that json data: function getcustomer(cparam){ var custname = cparam ; var procurl = "getcustomer.avfp" $.ajax({ url: procurl, type: 'POST', data: { theseachstring: custname, action: "getcustomer" }, error: function() { //alert('Error'); }, success: function(data) { // alert(data); document.getElementById('textareatest').value = data; // How to set to datatable? $('#example3').dataTable( { "ajax": data } ); } }); }

Any idea how can I do this? Basically the table should have 2 row with the column chart, firstname and lastname.

Thank you.

ace
ace Author

Hi there

Sorry about the really late reply, I had a look at your code, the only thing that you need to configure and make sure is the table th count is equal to the JSON keys, You will have a better understanding over here

http://www.datatables.net/examples/data_sources/ajax.html
profuse Purchased

In relation to the chat menu, I have the chat menu load dynamic content as a result of a click on the main page. However, when the time taken to load / render this content is sufficiently high (I’m guessing 300 ms in setTimeout is the threshold), the chat menu renders blank. Sometimes, the menu loads the content then very soon becomes blank. However, this is only the case when the page is in small-window mode. In full screen, everything renders correctly.

Any ideas on what is going on and how to solve this? Is there a difference in code between how the chat menu is rendered in full screen and otherwise?

Thanks.

ace

Hi there

That is strange :) there is not delay set so far would you like to share the ajax code with me ?

support@revox.io
by
by
by
by
by
by