servoy javascript not working properly

Using Servoy to administrate the content of your website? Discuss all webrelated Servoy topics on this forum!

servoy javascript not working properly

Postby nandlalajisingh » Tue Jul 28, 2015 2:28 pm

Hi all

i am trying out simple servoy javascript integration but its not working fine.
i have a html area in form. And i am calling that form in other form's tab.
I giving anchor tag in html area,
Code: Select all
     var items =['Create_BezMedCon','Update_BezMedCon'];
   menu_item = '<html><body><br><br>' ;
   for(var i in items) {
      
      menu_item += '<h2><a id ="' + items[i]  + '" onclick="runMenuHandler(id)" href="#">'+ items[i] + '</a></h2><br>' ;
    
   }
   
   menu_item += '<script type="text/javascript" charset="utf-8">'+
   
            'function runMenuHandler(eventName){'+
               plugins.WebClientUtils.generateCallbackScript(runMenuHandlerServoy, ['eventName'])+
            '}' +
               
            '</script></body></html>';
}


Again i am defining callback method

Code: Select all

function runMenuHandlerServoy(eventName) {
   application.out("Hello...");
        forms.tpp_main_support.elements.tab_right_window.tabIndex = 2;
}


The problem is in browser on clicking on the link. Its showing small loading.... image on right top and then after the application is hanged and nothing happening...
Though its printing Hello... in console.
After refresh its loading the other tab.
I looked in browser console and got following message
404 error -http://localhost:8080/servoy-webclient/application/solution/resources/wicketevent/wicket-event.js not found
But wicket-event.js is some servoy internal js file.

BTW i am using servoy 7.4.4
And also updated my webclient plugin to 1.4

Thanks
Nand
nandlalajisingh
 
Posts: 15
Joined: Thu Jun 05, 2014 9:14 am

Re: servoy javascript not working properly

Postby nandlalajisingh » Thu Jul 30, 2015 5:54 am

no one came across such problem. It would be kind if some one help me with this.
nandlalajisingh
 
Posts: 15
Joined: Thu Jun 05, 2014 9:14 am

Re: servoy javascript not working properly

Postby ROCLASI » Thu Jul 30, 2015 12:33 pm

Hi Nand,

Perhaps you should create a support case for this. Since it very much looks like it's something internal.
Robert Ivens
ROCLASI Software Solutions / JBS Group, Partner
SAN Developer / Servoy Valued Professional / Servoy Certified Developer
Twitter: @roclasi / @servoyforge
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5205
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium

Re: servoy javascript not working properly

Postby ROCLASI » Fri Jul 31, 2015 1:20 pm

Hi Nand,

Perhaps this thread has your solution?
Robert Ivens
ROCLASI Software Solutions / JBS Group, Partner
SAN Developer / Servoy Valued Professional / Servoy Certified Developer
Twitter: @roclasi / @servoyforge
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5205
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium

Re: servoy javascript not working properly

Postby nandlalajisingh » Fri Jul 31, 2015 1:48 pm

Thanks a lot Robert,
You saved my life. that nice url value true was the problem. Now its working. Though i did create a support case. Let me close that issue.
nandlalajisingh
 
Posts: 15
Joined: Thu Jun 05, 2014 9:14 am


Return to Web Development

Who is online

Users browsing this forum: No registered users and 3 guests

cron