NetTalk Central

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - valicgordon

Pages: [1]
1
Thanks for the help Bruce, all sorted and working well.

Sylvester

2
Hi Bruce

So what I did:

1. Add the div to the page

<div id="popup_bookingform_div"></div>

2. call the form

ntd.push('BookingForm','','Update',1,1,'','PageScheduler','','fred=1&bob=2')


I can see the call as a result from the ntd.push, in the Console

http://server/BookingForm?_ajax_=1&pressedButton=change_btn&_popup_=1&_bidv_=899999999&fred=1&bob=2

Nettalk server

debugging, I can see the response is the form I am loading.

GET /BookingForm?_ajax_=1&pressedButton=change_btn&_popup_=1&_bidv_=899999999&fred=1&bob=2 HTTP/1.1
Host: server
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:22.0) Gecko/20100101 Firefox/22.0
Accept: */*
Accept-Language: en-gb,en;q=0.5
Accept-Encoding: gzip, deflate
X-Requested-With: XMLHttpRequest
Referer: http://server/PageScheduler
Connection: keep-alive

the reponse shows me my form, I will post a new line.

The issue is No Popup actually opens, could it be an issue with the initial div, with the popup_procName_div

To confirm, must this div  be on the refer page, in this case, PageScheduler?


3
Thanks Bruce, I will implement and test.

Appreciated.

Sylvester

4
Bruce, I think the question is how would I call a nettalk form from the custom javascript widget that would have it work exactly the same if called from within nettalk, either from a menu item, browse etc.

Currently I call a form, as per my example,
var tag1 = $("<div></div>");
$.ajax({
url: "BookingForm?sessioncode="+id+"&staffid="+ev.section_id+"&itemid="+ev.section4_id+"&resourceid="+ev.section2_id+"&equipmentid="+ev.section3_id+"&startdate="+ev.start_date+"&enddate="+ev.end_date,
success: function(data) {
tag1.html(data).dialog({modal: true, height: 750, width: 550, close: function(event, ui) { DoCloseEvent(); }    }).dialog('open');         
             } // success funtion
    });  //close this ajax     

To open it as a JQuery dialog.

If you could point me in the right direction, much appreciated.

Thanks

5
Hi, LOL, Ver 6.28.

The error does not go away after the the form has opened.

Yes, Nettalk app with custom Javascript widget on page.

Thanks

Sylvester

6
Hi, I have a strange issue.

I have a form that I call in an external library:
BookingForm = Nettalk form
                 
var tag1 = $("<div></div>");
$.ajax({
url: "BookingForm?sessioncode="+id+"&staffid="+ev.section_id+"&itemid="+ev.section4_id+"&resourceid="+ev.section2_id+"&equipmentid="+ev.section3_id+"&startdate="+ev.start_date+"&enddate="+ev.end_date,
success: function(data) {
tag1.html(data).dialog({modal: true, height: 750, width: 550, close: function(event, ui) { DoCloseEvent(); }    }).dialog('open');         
             } // success funtion
    });  //close this ajax      


This opens the form in a popup (jquery dialog).  Great!

Issue is it opens with a Javascript Error 'Error in Site Javascript) as well as opening very slow ( it appears to be loading all.js when opening the dialog - taking bulk of the time)

If I call the same form from within nettalk, No Error.

Any help appreciated,

Oh, using ver 2.68, at this time , upgrade not an option.




7
Web Server - Ask For Help / add a Flex Grid in nettalk
« on: January 17, 2012, 01:39:57 AM »
Hi,

how easy would it be to (steps) to change the default browse style to using one like Flex Grid.  http://flexigrid.info/

I have downloaded the javascript as well as the CSS file.

Sylvester

Pages: [1]