• charu
  • NEWBIE
  • 0 Points
  • Member since 2007

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 4
    Questions
  • 5
    Replies
Hi All,

Hi can I use JS file stored in Static Resources in my Visualforce Page?

Example:
I have stored a JS file with few functions in Static Resources. How can I use that Static Resource in Visualforce Page?

Please let me know if anyone can help me with this, ASAP.

Thanks
  • July 17, 2008
  • Like
  • 0
Hi All,

How can I use both Javascript Code and Visualforce Page simultaneouly? In my code, whenever I use Javascript code, it creates problem with the Calendar. It donot allow calendar to select the Date.

Please if anyone have any solution for this, let me know ASAP.

Thanks....
  • July 17, 2008
  • Like
  • 0
Hi  All,

I have a problem regarding dependent picklist.
I have made 2 custom picklist , one is State and the other is Country.
I want to make State as a dependent picklist on Country Picklist.
I want to get the states related to the selected Country in the state picklist dynamically through Salesforce.
Please help me , ow can i retrieve state values from salesforce dynamically?

Suggestions...........? Thanks


  • September 27, 2007
  • Like
  • 0
How can I login to salesforce from outside salesforce using  js, if I use soap messages or Ajax Toolkit?
Below is the code I have tried but its not working from outside salesforce:-


<script src="http://na4.salesforce.com/soap/ajax/9.0/connection.js"></script>
<script>
try{
var result = sforce.connection.login("abcd@org.com","secret");
alert("logged in with session id " + result.sessionId);
}catch(error) {

alert(error);
}

</script>
  • August 02, 2007
  • Like
  • 0
Hi All,

How can I use both Javascript Code and Visualforce Page simultaneouly? In my code, whenever I use Javascript code, it creates problem with the Calendar. It donot allow calendar to select the Date.

Please if anyone have any solution for this, let me know ASAP.

Thanks....
  • July 17, 2008
  • Like
  • 0
Hi  All,

I have a problem regarding dependent picklist.
I have made 2 custom picklist , one is State and the other is Country.
I want to make State as a dependent picklist on Country Picklist.
I want to get the states related to the selected Country in the state picklist dynamically through Salesforce.
Please help me , ow can i retrieve state values from salesforce dynamically?

Suggestions...........? Thanks


  • September 27, 2007
  • Like
  • 0
Hi,

Reading through the forums, i found many options but still havent manage to get a working solution.
The data in SFDC backend is stored as per organisation timezone. On accessing it in a s-control, i want a date displayed to be converted to User's Time Zone.

I am using the Ajax toolkit  8.0 to get the following:

var user = sforce.connection.getUserInfo();
alert("your timezone is: " + user.userTimeZone);

However this returns me America/Los_Angeles, where as i want a value such as GMT +7 etc. I would then use this to calculate the offset from the base GMT time stored in SFDC to convert it to User Timezone.

Any help anyone?

Cheers
Caps