Page Index Toggle Pages: [1] 2 3 ... 6 Send TopicPrint
Very Hot Topic (More than 25 Replies) how to start on web application with ajax. (Read 36540 times)
kirtesh
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 40
Joined: Jul 24th, 2007
how to start on web application with ajax.
Jul 24th, 2007 at 10:38am
Print Post  
sir
I am using image map ...with this can i be able to
apply ajax ,java script handling etc.
Sir ,what will be better ..should use java applet or
image map for this application.
actually my application is related to creating flowchart from database's data. I want apply all
handling creating ,deleting ...etc.. by ajax calling .
during this time I also unable to save the flowchart
data when using other handling ...mean how to save flowchart and how to recover data from this previous handling ...xml saving is right option or not?
also when i am applying deatch() to any node while using collapse handling ..but when expending data cming with duplicacy.
plz help
thanks

  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: how to start on web application with ajax.
Reply #1 - Jul 24th, 2007 at 11:36am
Print Post  
Hi,

Better use the applet mode. Check the OrgBrowser sample project for example on how to make Ajax calls from client side event handlers.

You might transfer the string returned by SaveToString between the client and the server (using Ajax calls or hidden field values), and load it using LoadFromString. On the server side you can save it either in binary or XML format, as you prefer.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
kirtesh
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 40
Joined: Jul 24th, 2007
Re: how to start on web application with ajax.
Reply #2 - Jul 24th, 2007 at 12:36pm
Print Post  
hi sir,
thanks for fast reply.
i used yr orgbrowser ..but its being build failed
due to
<asp:ScriptManager ID="ScriptManager1" runat="server">
           <Services>
               <asp:ServiceReference Path="OrgService.asmx" />
           </Services>
       </asp:ScriptManager>

plz specify what i hav to do run it successfully ?
thanks
kirtesh
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: how to start on web application with ajax.
Reply #3 - Jul 24th, 2007 at 1:01pm
Print Post  
You must install the ASP.NET AJAX framework:

http://ajax.asp.net/

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
kirtesh
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 40
Joined: Jul 24th, 2007
Re: how to start on web application with ajax.
Reply #4 - Jul 24th, 2007 at 1:23pm
Print Post  
sir
I have installed , but when i remove property
clientsidemode of scriptmanager...project runs..
but loading javaapplet failed .
what i hav to do nxt for it..
sorry for innconvienince.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: how to start on web application with ajax.
Reply #5 - Jul 24th, 2007 at 1:35pm
Print Post  
What do you mean by "remove property 
clientsidemode of scriptmanager"?

Stoyan
  
Back to top
 
IP Logged
 
kirtesh
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 40
Joined: Jul 24th, 2007
Re: how to start on web application with ajax.
Reply #6 - Jul 25th, 2007 at 4:16am
Print Post  
Sir ,
the project is running successfully now..
thanks

kirtesh
  
Back to top
 
IP Logged
 
kirtesh
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 40
Joined: Jul 24th, 2007
Re: how to start on web application with ajax.
Reply #7 - Jul 25th, 2007 at 9:19am
Print Post  
sir ,

1.how can i extract the node tag on javascript page ..
to identify that which node has been clicked in a large group of nodes ...while i am able to give the
identity on the aspx.cs page using .tag property .

kirtesh
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: how to start on web application with ajax.
Reply #8 - Jul 25th, 2007 at 9:28am
Print Post  
Tags are automatically transferred between the client and the server only if they are strings. Otherwise you must handle the SeriailzeTag and DeserializeTag events to convert the tags to/from strings.

Stoyan
  
Back to top
 
IP Logged
 
kirtesh
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 40
Joined: Jul 24th, 2007
Re: how to start on web application with ajax.
Reply #9 - Jul 25th, 2007 at 10:00am
Print Post  
hi
I have already used string format ..with Tag,
actually when I expend the node ..it comes on this javasript function ..but cant identify the parentNode  mean "its value is not identified ".how can it be solved.


function onTreeExpanded(parentNode)
       {
            //var parentNode = '0';
                  var i       = parentnode.Tag;
      
             var param = 'action=TreeExpanded='+parentNode;
             WebForm_DoCallback('__Page', param, null, 'fdiv', ResultHandlerError, false);
         
       }
     
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: how to start on web application with ajax.
Reply #10 - Jul 25th, 2007 at 10:25am
Print Post  
JavaScript is case-sensitive, so replace "parentnode.Tag" with "parentNode.Tag".
  
Back to top
 
IP Logged
 
kirtesh
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 40
Joined: Jul 24th, 2007
Re: how to start on web application with ajax.
Reply #11 - Jul 25th, 2007 at 1:54pm
Print Post  
I have modified  it .
but pro. has not been removed .
its cming unknown exeception ..mean its not identifying parentNode at my side ,I think.

  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: how to start on web application with ajax.
Reply #12 - Jul 25th, 2007 at 2:13pm
Print Post  
The items' properties can be accessed via getter methods on the client side:

i = parentNode.getTag()

You cannot use the property syntax there (parentNode.Tag).

Stoyan
  
Back to top
 
IP Logged
 
kirtesh
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 40
Joined: Jul 24th, 2007
Re: how to start on web application with ajax.
Reply #13 - Jul 26th, 2007 at 7:41am
Print Post  
Sir
Can i able to be implement ajax using Imagemap.aspx .

kirtesh
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: how to start on web application with ajax.
Reply #14 - Jul 26th, 2007 at 8:39am
Print Post  
The most you can do from image map mode is to call Ajax methods when an item is clicked. Users won't be able to draw or modify items, but just click on ones you create programmatically on the server.

Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: [1] 2 3 ... 6
Send TopicPrint