15,899,313 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by SL-A-SH (Top 39 by date)
SL-A-SH
14-Mar-19 23:33pm
View
Like I said I cannot use x.name or x.status because that array can change with different key value pairs. I cannot hardcode the keys
SL-A-SH
27-Dec-17 10:28am
View
Okay thank you
SL-A-SH
27-Dec-17 7:02am
View
Currently it gives me an array like this clsMsg {id: "msg_92", msg: "
26 Dec, 6:18 pm"}
But I need it to be {msg_92 : "
26 Dec, 6:18 pm"}
SL-A-SH
27-Dec-17 6:52am
View
But this doesn't set it as key value pair. I want the key to be the id and the value to be msg
SL-A-SH
27-Dec-17 6:45am
View
Deleted
You declared the object starred_id = {}.... but you are not using it. Can it be removed?
SL-A-SH
27-Dec-17 6:42am
View
Deleted
Thank you this works.
SL-A-SH
18-Nov-17 10:38am
View
Yay thanks
SL-A-SH
18-Nov-17 6:30am
View
On the media query give your image a smaller height and width.
SL-A-SH
18-Nov-17 3:45am
View
Thank you so much. This is exactly what I wanted.
SL-A-SH
11-Nov-17 0:39am
View
Deleted
Can I get some help with this. When my string contains a "/" or "\"after the "$" the regex dosen't work.
Ex - "$/regex$ sdfnsdf $\regex$". The beginning $ doesn't get changed
SL-A-SH
10-Nov-17 0:59am
View
Thank you so much for this. Will go through this sometime. :)
SL-A-SH
9-Nov-17 4:39am
View
Thank you so much for this. The regex one is much simpler and less code.
SL-A-SH
9-Nov-17 4:18am
View
Ok I got it now I didnt added the starting and end /. Thanks for the solution
SL-A-SH
9-Nov-17 4:09am
View
Ok I did something like this x.replace(\$\b, '#'); but it gives me an error in the console 'Uncaught SyntaxError: Invalid or unexpected token'
Same with \b\$
SL-A-SH
28-Mar-17 9:21am
View
Ok thank you so much
SL-A-SH
28-Mar-17 8:53am
View
I have updated the whole code. My values don't change when another option is selected. I think its because my first x.room_type_id calls data which has two Summer Plan's in its plan_names. Check out the updated code. You will understand
SL-A-SH
28-Mar-17 6:16am
View
Okay
SL-A-SH
28-Mar-17 3:30am
View
Sorry for bothering. I have updated the code. Can you please check and tell me what am I doing wrong. I am really having trouble fixing that.
SL-A-SH
27-Mar-17 5:49am
View
Thank you :-)
SL-A-SH
27-Mar-17 5:35am
View
Can you please edit it and make Summer plan and 2000 selected by default on page load. I tried using $scope.selvalue = planNames[0]; but it doesn't work
SL-A-SH
27-Mar-17 4:52am
View
Thank you so much. This works
SL-A-SH
25-Mar-17 9:52am
View
I know it's supposed to be like how you described but I can't change the API
SL-A-SH
25-Mar-17 9:51am
View
I am calling it from an API and that's the exact format I am getting.
SL-A-SH
25-Mar-17 6:19am
View
I made it work. Thank you
SL-A-SH
24-Mar-17 9:51am
View
I can now call both the images. :D Can you please check the What I have Tried section. I have updated it
SL-A-SH
24-Mar-17 6:04am
View
Nope when I page is loaded it gives one object because by default one hotel is selected. And when another hotel is selected it gives another object so data is changed accordingly in the view
SL-A-SH
24-Mar-17 5:29am
View
Same JSON data where I am getting the images from but this time from a different image ID.
Like this
{
status: 200,
message: "Packages Found",
data: {
0: "45",
1: "0",
2: "uploads/17081121512t13ry63443fg43416t46136.jpg",
image_id: "45",
hotel_id: "0",
image_name: "uploads/17081121512t13ry63443fg43416t46136.jpg"
}
}
SL-A-SH
24-Mar-17 5:02am
View
http://codepen.io/SL-A-SH/pen/yMEXWg?editors=1010
SL-A-SH
24-Mar-17 5:02am
View
Deleted
http://codepen.io/SL-A-SH/pen/yMEXWg?editors=1010 Check the codepen
SL-A-SH
24-Mar-17 3:54am
View
No. I have added the JSON for roomdata
SL-A-SH
24-Mar-17 3:41am
View
What I mean to say is I am passing in two values in $scope.room_image_id in my second GET method then why am I getting response only from the second value.
SL-A-SH
24-Mar-17 3:30am
View
Check the EDIT. Currently I am getting two rows but in both the row I am getting the same image instead of different images
SL-A-SH
24-Mar-17 3:16am
View
I want the image_name to be stored in $scope.room_image so that when I use ng-repeat in my view. It shows two images instead of one. I am currently using that but I am getting the same image on both the rows
SL-A-SH
24-Mar-17 3:11am
View
I have edited the question
SL-A-SH
24-Mar-17 2:29am
View
JSON data
SL-A-SH
24-Mar-17 2:05am
View
Object from one URL. I should get two objects since my $scope.room_image_id is giving me two values
SL-A-SH
21-Mar-17 10:06am
View
When I click the + button on Rooms, more Adult and Child select elements are added. Similarly, I want those added elements to be removed when I click the - button on rooms
SL-A-SH
21-Mar-17 9:48am
View
removing the elements which I add if I press the + button. The elements added should be removed if I click the - button. Check my codepen
SL-A-SH
21-Mar-17 9:41am
View
I know but my whole application is in AngularJS
Show More